]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit66682914e0e61083cbfa02e1addcd2d3314f2771
tree2b2b1fde341bb153349edd9c359c4e4b69eec220
parent60b3d21186c655d2f9a1ed9832468955307933e4
NFS: Cleanup if nfs_match_client is interrupted

BugLink: https://bugs.launchpad.net/bugs/1839213
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/nfs/client.c