summaryrefslogtreecommitdiff
path: root/fs/nfsd
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2017-02-05 04:57:37 +0300
committerJ. Bruce Fields <bfields@redhat.com>2017-02-18 00:26:01 +0300
commite86a40bc7331b7b93a88edd74e6b2f738107a6f9 (patch)
tree123c6e1f526911450b4474c6d845bf3edd4a21d8 /fs/nfsd
parentf7d1ddbe7648af7460d23688c8c131342eb43b3a (diff)
downloadlinux-e86a40bc7331b7b93a88edd74e6b2f738107a6f9.tar.xz
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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4callback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index fb6ca0ace9b1..ea74149841e7 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -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: