summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-07-25 22:54:04 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2023-07-25 22:54:04 +0200
commit0b4a9fdc9317440a71d4d4c264a5650bf4a90f3c (patch)
tree6ce1db58e39eac8c3ac71d272bcb41eb8fd43af1 /fs/nfsd
parentMerge tag 'm68k-for-v6.5-tag2' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
parentnfsd: Remove incorrect check in nfsd4_validate_stateid (diff)
downloadlinux-0b4a9fdc9317440a71d4d4c264a5650bf4a90f3c.tar.xz
linux-0b4a9fdc9317440a71d4d4c264a5650bf4a90f3c.zip
Merge tag 'nfsd-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fix from Chuck Lever: - Fix TEST_STATEID response * tag 'nfsd-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: nfsd: Remove incorrect check in nfsd4_validate_stateid
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 6e61fa3acaf1..3aefbad4cc09 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -6341,8 +6341,6 @@ static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid)
if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) ||
CLOSE_STATEID(stateid))
return status;
- if (!same_clid(&stateid->si_opaque.so_clid, &cl->cl_clientid))
- return status;
spin_lock(&cl->cl_lock);
s = find_stateid_locked(cl, stateid);
if (!s)