Skip to content

Commit 18f428d

Browse files
Olga KornievskaiaJ. Bruce Fields
authored andcommitted
NFSD fixing possible null pointer derefering in copy offload
Static checker revealed possible error path leading to possible NULL pointer dereferencing. Reported-by: Dan Carpenter <[email protected]> Fixes: e0639dc: ("NFSD introduce async copy feature") Signed-off-by: Olga Kornievskaia <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 466e16f commit 18f428d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,8 @@ nfsd4_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
12981298
out:
12991299
return status;
13001300
out_err:
1301-
cleanup_async_copy(async_copy);
1301+
if (async_copy)
1302+
cleanup_async_copy(async_copy);
13021303
goto out;
13031304
}
13041305

0 commit comments

Comments
 (0)