]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: fix return value of btrfs_get_acl()
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Thu, 6 Oct 2011 04:37:08 +0000 (13:37 +0900)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:43 +0000 (21:20 -0500)
commit6c701fe7f91d5f0dc723b46ff25e0edc70bb7a49
tree175a7688195632ac1d6913b836a36b909802fdd3
parent97806a0adc47f0683fbe1f2cb6664b33e0ce279a
Btrfs: fix return value of btrfs_get_acl()

In btrfs_get_acl(), when the second __btrfs_getxattr() call fails,
acl is not correctly set.
Therefore, a wrong value might return to the caller.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
(cherry picked from commit cfbffc39ac89dbd5197cbeec2599a1128eb928f8)
fs/btrfs/acl.c