]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd836b58ff7ad81b206a959939f2c7c3ee87e3f48
treecaa03958f1e6e725e07530ed3354be5353c4cd56
parent76b531239e1a4f0d106515a1be469df71b833f36
nfsd4: fix double free in nfsd4_do_async_copy()

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

Fixes: a30024ebea5b ("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