mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
nfsd: nfs4_check_fh - make it actually check the filehandle
...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>
This commit is contained in:
parent
ca94321783
commit
b07c54a4a3
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user