]> 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)
commit0a43ba0d65cac528151d7983a1cc252fb58581c6
treecaa03958f1e6e725e07530ed3354be5353c4cd56
parent39e84cf43aa67af684e4aab7d5d8d5205e6b4a06
nfsd4: fix double free in nfsd4_do_async_copy()

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

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