Skip to content

Commit 94836ec

Browse files
committed
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
2 parents 057a650 + 05b7278 commit 94836ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2489,7 +2489,7 @@ bool nfsd4_spo_must_allow(struct svc_rqst *rqstp)
24892489

24902490
int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op)
24912491
{
2492-
if (op->opnum == OP_ILLEGAL)
2492+
if (op->opnum == OP_ILLEGAL || op->status == nfserr_notsupp)
24932493
return op_encode_hdr_size * sizeof(__be32);
24942494

24952495
BUG_ON(OPDESC(op)->op_rsize_bop == NULL);

0 commit comments

Comments
 (0)