mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
btrfs: fix memory leak in update_space_info failure path
commit896533a7daupstream. If we fail to add the space_info kobject, we'll leak the memory for the percpu counter. Fixes:6ab0a2029c(btrfs: publish allocation data in sysfs) Signed-off-by: Jeff Mahoney <jeffm@suse.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4d15ab90ec
commit
66d6448475
1 changed files with 1 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue