]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix a double unlock from nfs_match,get_client
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 9 May 2019 11:25:21 +0000 (07:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:24 +0000 (06:45 -0700)
commit8a5cad2423894aaeb0980962fcbcfd2e0eaf4b32
tree2d087737916211afacb2ac3aa280e3e871750901
parent65784eba8a52bbeb8522487dd202ab8f6354173c
NFS: Fix a double unlock from nfs_match,get_client

[ Upstream commit c260121a97a3e4df6536edbc2f26e166eff370ce ]

Now that nfs_match_client drops the nfs_client_lock, we should be
careful
to always return it in the same condition: locked.

Fixes: 950a578c6128 ("NFS: make nfs_match_client killable")
Reported-by: syzbot+228a82b263b5da91883d@syzkaller.appspotmail.com
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/client.c