]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: free ulist in qgroup_shared_accounting() error path
authorEric Sandeen <sandeen@redhat.com>
Thu, 12 Jun 2014 05:14:59 +0000 (00:14 -0500)
committerChris Mason <clm@fb.com>
Fri, 13 Jun 2014 16:52:26 +0000 (09:52 -0700)
commit87a04aadde3fac6992036acb18fadeeb2e1a5ce3
tree41ccc9192cceeeaa0a8694b6c6d3a7e7fd71c43a
parenta406dfccb7b0eb1e2530b228949b5884e20b62cb
btrfs: free ulist in qgroup_shared_accounting() error path

If tmp = ulist_alloc(GFP_NOFS) fails, we return without
freeing the previously allocated qgroups = ulist_alloc(GFP_NOFS)
and cause a memory leak.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c