NFS: Cleanup if nfs_match_client is interrupted
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 11 Jun 2019 16:57:52 +0000 (12:57 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Jul 2019 18:54:53 +0000 (14:54 -0400)
commit9f7761cf0409465075dadb875d5d4b8ef2f890c8
tree3d45759d163d8a875e3173dd8154d54da85556ee
parent9026b3a973b0b0b73c15ba40aff87cd0959fd0f3
NFS: Cleanup if nfs_match_client is interrupted

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>
fs/nfs/client.c