Commit 4e3733f
NFSv4.2: fix error handling in nfs42_proc_getxattr
There is a slight issue with error handling code inside
nfs42_proc_getxattr(). If page allocating loop fails then we free the
failing page array element which is NULL but __free_page() can't deal with
NULL args.
Found by Linux Verification Center (linuxtesting.org).
Fixes: a1f2673 ("NFSv4.2: improve page handling for GETXATTR")
Signed-off-by: Fedor Pchelkin <[email protected]>
Reviewed-by: Benjamin Coddington <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>1 parent c3dd7de commit 4e3733f
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1377 | 1377 | | |
1378 | 1378 | | |
1379 | 1379 | | |
1380 | | - | |
1381 | 1380 | | |
1382 | 1381 | | |
1383 | 1382 | | |
| |||
1401 | 1400 | | |
1402 | 1401 | | |
1403 | 1402 | | |
1404 | | - | |
1405 | | - | |
| 1403 | + | |
| 1404 | + | |
1406 | 1405 | | |
1407 | 1406 | | |
1408 | 1407 | | |
| |||
0 commit comments