nfsd/callback: Make sure skip the callback tag
Subsystems (2)
PATCH 2/3 nfsd/callback: Make sure skip the callback tag
Although the callback tag is NULL, and hdr->nops is unused too right now, but, if a testing with callback tag is an non-zero, the nops will get a bad value.
Signed-off-by Kinglong Mee <[email protected]>
--- fs/nfsd/nfs4callback.c | 1 + 1 file changed, 1 insertion(+)
fs/nfsd/nfs4callback.c +1 -0
@@ -303,6 +303,7 @@ static int decode_cb_compound4res(struct xdr_stream *xdr, p =xdr_inline_decode (xdr, length +4 );if (unlikely (p ==NULL )) goto out_overflow; + p +=XDR_QUADLEN (length); hdr->nops =be32_to_cpup (p);return 0 ; out_overflow:
Signature · 1 line
2.9.3