Re: [PATCH] btrfs: fix memory leak in update_space_info failure path

2017-05-18 Thread Liu Bo
On Wed, May 17, 2017 at 09:49:37AM -0400, je...@suse.com wrote: > From: Jeff Mahoney > > 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) > Cc: #

[PATCH] btrfs: fix memory leak in update_space_info failure path

2017-05-17 Thread jeffm
From: Jeff Mahoney 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) Cc: # v3.14+ Signed-off-by: Jeff Mahoney --- fs/btrfs/extent-tree.c |