diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-10-02 00:59:44 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-10-02 15:37:42 +0200 |
commit | 1841b9b61492e35234bdca8a5737a0e5df770f27 (patch) | |
tree | bbf2665767867df7a1096b6703b0d55edaacfdf9 /fs/nilfs2/dat.h | |
parent | NFSD: Remove vestigial typedefs (diff) | |
download | linux-1841b9b61492e35234bdca8a5737a0e5df770f27.tar.xz linux-1841b9b61492e35234bdca8a5737a0e5df770f27.zip |
NFSD: Fix .pc_release method for NFSv2
nfsd_release_fhandle() assumes that rqstp->rq_resp always points to
an nfsd_fhandle struct. In fact, no NFSv2 procedure uses struct
nfsd_fhandle as its response structure.
So far that has been "safe" to do because the res structs put the
resp->fh field at that same offset as struct nfsd_fhandle. I don't
think that's a guarantee, though, and there is certainly nothing
preventing a developer from altering the fields in those structures.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nilfs2/dat.h')
0 files changed, 0 insertions, 0 deletions