]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Cleanup if nfs_match_client is interrupted
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 11 Jun 2019 16:57:52 +0000 (12:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2019 07:32:02 +0000 (09:32 +0200)
commit4f694fac720866747c5e794b797085b3189a8696
tree6a9772384d2a7ded550029437b12c2a9ef5e7ea1
parent171e75b33054d546c2cf9fadd0a3523a0b4bd932
NFS: Cleanup if nfs_match_client is interrupted

commit 9f7761cf0409465075dadb875d5d4b8ef2f890c8 upstream.

Don't bail out before cleaning up a new allocation if the wait for
searching for a matching nfs client is interrupted.  Memory leaks.

Reported-by: syzbot+7fe11b49c1cc30e3fce2@syzkaller.appspotmail.com
Fixes: 950a578c6128 ("NFS: make nfs_match_client killable")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/client.c