diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-04-21 19:37:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-04-21 19:37:48 -0400 |
commit | 94836ecf1e7378b64d37624fbb81fe48fbd4c772 (patch) | |
tree | 64724914a5d2b6c7ef61fba246f2ae630e0b955b | |
parent | 057a650bdcb05ec5947558b6baa5305a3cb15f17 (diff) | |
parent | 05b7278d510a6a1c23624caee5b0a9667a72e745 (diff) |
Merge tag 'nfsd-4.11-2' of git://linux-nfs.org/~bfields/linux
Pull nfsd bugfix from Bruce Fields:
"Fix a 4.11 regression that triggers a BUG() on an attempt to use an
unsupported NFSv4 compound op"
* tag 'nfsd-4.11-2' of git://linux-nfs.org/~bfields/linux:
nfsd: fix oops on unsupported operation
-rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index cbeeda1e94a2..d86031b6ad79 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -2489,7 +2489,7 @@ bool nfsd4_spo_must_allow(struct svc_rqst *rqstp) | |||
2489 | 2489 | ||
2490 | int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) | 2490 | int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) |
2491 | { | 2491 | { |
2492 | if (op->opnum == OP_ILLEGAL) | 2492 | if (op->opnum == OP_ILLEGAL || op->status == nfserr_notsupp) |
2493 | return op_encode_hdr_size * sizeof(__be32); | 2493 | return op_encode_hdr_size * sizeof(__be32); |
2494 | 2494 | ||
2495 | BUG_ON(OPDESC(op)->op_rsize_bop == NULL); | 2495 | BUG_ON(OPDESC(op)->op_rsize_bop == NULL); |