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)
committerDavid Sterba <dsterba@suse.cz>
Thu, 20 Oct 2011 16:10:47 +0000 (18:10 +0200)
commitcfbffc39ac89dbd5197cbeec2599a1128eb928f8
treed544e0c12f565b1f8ff359eca3847fc0e10006c9
parent10b2f34d6e7fbe07f498cb2006272e9a561f5e60
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>
fs/btrfs/acl.c