nfsd: fix crash on LOCKT on reexported NFSv3
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 25 Aug 2021 02:36:03 +0000 (22:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:33 +0000 (13:40 +0200)
commiteb04c51a439e38dbbab363cf5f0599cbe0507b13
tree87f3b7a60e541c29e620a84a4767fa71a22b53a7
parent0e9f4492219f8f991163691aad43897da8478c4e
nfsd: fix crash on LOCKT on reexported NFSv3

[ Upstream commit 0bcc7ca40bd823193224e9f38bafbd8325aaf566 ]

Unlike other filesystems, NFSv3 tries to use fl_file in the GETLK case.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/nfs4state.c