]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfsd/nfs3xdr.c
Merge tag 'upstream-4.7-rc1' of git://git.infradead.org/linux-ubifs
[karo-tx-linux.git] / fs / nfsd / nfs3xdr.c
index 93d5853f8c99b84e5b0c530eeaf044396699ecc6..dba2ff8eaa68e3365deac3d61df3da5641099d9e 100644 (file)
@@ -379,7 +379,7 @@ nfs3svc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p,
         */
        hdr = (void*)p - rqstp->rq_arg.head[0].iov_base;
        dlen = rqstp->rq_arg.head[0].iov_len + rqstp->rq_arg.page_len
-               - hdr;
+               + rqstp->rq_arg.tail[0].iov_len - hdr;
        /*
         * Round the length of the data which was specified up to
         * the next multiple of XDR units and then compare that