]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix the XDR iovec calculation in nfs3_xdr_setaclargs
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Apr 2009 18:58:35 +0000 (14:58 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Apr 2009 14:46:49 +0000 (07:46 -0700)
commit69e75717f652140ea18037058dc3fdec179f2827
tree844b16bd6c152c8632b6a5f032c36d09bd1baf18
parentdc0a1209aa1de5d374b20c62aa74ea9ff3b4c531
NFS: Fix the XDR iovec calculation in nfs3_xdr_setaclargs

Commit 700306eebc7982d1ef8e80c8bd49c8858720f80c (NFSv3: Fix posix ACL code)
introduces a bug in the calculation of the XDR header iovec. In the case
where we are inlining the acls, we need to adjust the length of the iovec
req->rq_svec, in addition to adjusting the total buffer length.

Tested-by: Leonardo Chiquitto <leonardo.lists@gmail.com>
Tested-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/nfs3xdr.c