nfsd4: fix double free in nfsd4_do_async_copy()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 Jan 2020 13:23:07 +0000 (16:23 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 6 Feb 2020 16:22:55 +0000 (11:22 -0500)
commit91fd3c3edcd7f223c5340a8324f67b03a85a73aa
treecaa03958f1e6e725e07530ed3354be5353c4cd56
parent689827cd5bfe89e4900db7e1c0c713083a76d04c
nfsd4: fix double free in nfsd4_do_async_copy()

This frees "copy->nf_src" before and again after the goto.

Fixes: ce0887ac96d3 ("NFSD add nfs4 inter ssc to nfsd4_copy")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c