Fixes Trond's review comment from 2009-06-15 Re: [pnfs] [RFC 25/39] nfs41: decode minorversion 1 cb_compound header Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx> --- fs/nfs/callback_xdr.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index 27ac457..654a6a2 100644 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c @@ -153,15 +153,12 @@ static __be32 decode_compound_hdr_arg(struct xdr_stream *xdr, struct cb_compound __func__, hdr->taglen); return htonl(NFS4ERR_RESOURCE); } - p = read_buf(xdr, 4); + p = read_buf(xdr, 12); if (unlikely(p == NULL)) return htonl(NFS4ERR_RESOURCE); hdr->minorversion = ntohl(*p++); /* Check minor version is zero or one. */ if (hdr->minorversion <= 1) { - p = read_buf(xdr, 8); - if (unlikely(p == NULL)) - return htonl(NFS4ERR_RESOURCE); p++; /* skip callback_ident */ } else { printk(KERN_WARNING "%s: NFSv4 server callback with " -- 1.6.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html