1
0
Fork 0

NFSD fixing possible null pointer derefering in copy offload

commit 18f428d4e2 upstream.

Static checker revealed possible error path leading to possible
NULL pointer dereferencing.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: e0639dc5805a: ("NFSD introduce async copy feature")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5.4-rM2-2.2.x-imx-squashed
Olga Kornievskaia 2019-12-04 15:13:54 -05:00 committed by Greg Kroah-Hartman
parent 382e63a560
commit 4ef3593207
1 changed files with 2 additions and 1 deletions

View File

@ -1298,7 +1298,8 @@ nfsd4_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
out:
return status;
out_err:
cleanup_async_copy(async_copy);
if (async_copy)
cleanup_async_copy(async_copy);
goto out;
}