projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca94321
)
nfsd: nfs4_check_fh - make it actually check the filehandle
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Wed, 23 Jul 2014 20:17:40 +0000
(16:17 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Wed, 23 Jul 2014 20:35:24 +0000
(16:35 -0400)
...instead of just checking the inode that corresponds to it.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4state.c
b/fs/nfsd/nfs4state.c
index ab96718df3ccad33ee36030a94d9a8296126d437..6ced8d566c0ba6503f868b124d1b12bb7f632d64 100644
(file)
--- a/
fs/nfsd/nfs4state.c
+++ b/
fs/nfsd/nfs4state.c
@@
-3951,7
+3951,7
@@
laundromat_main(struct work_struct *laundry)
static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_ol_stateid *stp)
{
- if (
fhp->fh_dentry->d_inode != stp->st_file->fi_inode
)
+ if (
!nfsd_fh_match(&fhp->fh_handle, &stp->st_file->fi_fhandle)
)
return nfserr_bad_stateid;
return nfs_ok;
}