Skip to content

Commit e86a40b

Browse files
kinglongmeeJ. Bruce Fields
authored andcommitted
nfsd/callback: skip the callback tag
The callback tag is NULL, and hdr->nops is unused too right now, but. But if we were to ever test with a nonzero callback tag, nops will get a bad value. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent f7d1ddb commit e86a40b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfsd/nfs4callback.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ static int decode_cb_compound4res(struct xdr_stream *xdr,
303303
p = xdr_inline_decode(xdr, length + 4);
304304
if (unlikely(p == NULL))
305305
goto out_overflow;
306+
p += XDR_QUADLEN(length);
306307
hdr->nops = be32_to_cpup(p);
307308
return 0;
308309
out_overflow:

0 commit comments

Comments
 (0)