aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index d8ddfc5467d6..3f18a266a491 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -2222,6 +2222,8 @@ static int decode_compound_hdr(struct xdr_stream *xdr, struct compound_hdr *hdr)
2222 hdr->tag = (char *)p; 2222 hdr->tag = (char *)p;
2223 p += XDR_QUADLEN(hdr->taglen); 2223 p += XDR_QUADLEN(hdr->taglen);
2224 READ32(hdr->nops); 2224 READ32(hdr->nops);
2225 if (unlikely(hdr->nops < 1))
2226 return nfs4_stat_to_errno(hdr->status);
2225 return 0; 2227 return 0;
2226} 2228}
2227 2229