diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-11-14 15:31:15 -0600 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-11-14 15:31:15 -0600 |
commit | 4e4490d438a1c84411e3ebd0b850b46dd2e752cf (patch) | |
tree | 46f0ca66f3725f5fccbcc1435353dff5816c5137 /fs | |
parent | d41217aac0a577a247c9c8cde688419fde25fba5 (diff) | |
parent | 025911a5f4e36955498ed50806ad1b02f0f76288 (diff) | |
download | linux-4e4490d438a1c84411e3ebd0b850b46dd2e752cf.tar.bz2 |
Merge tag 'nfsd-4.20-1' of git://linux-nfs.org/~bfields/linux
Pull nfsd fixes from Bruce Fields:
"Three nfsd bugfixes.
None are new bugs, but they all take a little effort to hit, which
might explain why they weren't found sooner"
* tag 'nfsd-4.20-1' of git://linux-nfs.org/~bfields/linux:
SUNRPC: drop pointless static qualifier in xdr_get_next_encode_buffer()
nfsd: COPY and CLONE operations require the saved filehandle to be set
sunrpc: correct the computation for page_ptr when truncating
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index edff074d38c7..d505990dac7c 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1038,6 +1038,9 @@ nfsd4_verify_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, { __be32 status; + if (!cstate->save_fh.fh_dentry) + return nfserr_nofilehandle; + status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->save_fh, src_stateid, RD_STATE, src, NULL); if (status) { |