]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix length of buffer copied in __nfs4_get_acl_uncached
authorSachin Prabhu <sprabhu@redhat.com>
Thu, 22 Mar 2012 16:46:28 +0000 (16:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 16:13:56 +0000 (09:13 -0700)
commit8bc8e9b14ba8c76a403478c0ad7b434be88a852b
treeeaaac8fd082dfc13473cbd3616a3d93b68c981d9
parent4cc93da01185838336d188a2c219ebd1c38eb676
Fix length of buffer copied in __nfs4_get_acl_uncached

commit 20e0fa98b751facf9a1101edaefbc19c82616a68 upstream.

_copy_from_pages() used to copy data from the temporary buffer to the
user passed buffer is passed the wrong size parameter when copying
data. res.acl_len contains both the bitmap and acl lenghts while
acl_len contains the acl length after adjusting for the bitmap size.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c