]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Mem leak in btrfs_get_acl()
authorJesper Juhl <jj@chaosbits.net>
Thu, 6 Jan 2011 21:45:21 +0000 (21:45 +0000)
committerChris Mason <chris.mason@oracle.com>
Sun, 16 Jan 2011 16:30:19 +0000 (11:30 -0500)
commit2a509d40851e6633be4ec07822f94b0163765717
tree4c0cfbe4f41004b096917ddf75ed7d74743a4af3
parentd7c559b8281a874a30e0965f6f55a1f1c5b7c8db
btrfs: Mem leak in btrfs_get_acl()

It seems to me that we leak the memory allocated to 'value' in
btrfs_get_acl() if the call to posix_acl_from_xattr() fails.
Here's a patch that attempts to correct that problem.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/acl.c