summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2017-02-05 02:57:37 +0100
committerJ. Bruce Fields <bfields@redhat.com>2017-02-17 22:26:01 +0100
commite86a40bc7331b7b93a88edd74e6b2f738107a6f9 (patch)
tree123c6e1f526911450b4474c6d845bf3edd4a21d8 /fs/nfsd
parentnfsd/callback: Cleanup callback cred on shutdown (diff)
downloadlinux-e86a40bc7331b7b93a88edd74e6b2f738107a6f9.tar.xz
linux-e86a40bc7331b7b93a88edd74e6b2f738107a6f9.zip
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: