Jeff Mahoney 896533a7da btrfs: fix memory leak in update_space_info failure path
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: <stable@vger.kernel.org> # v3.14+
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>
2017-06-01 16:56:31 +02:00
..
2017-02-27 18:43:46 -08:00
2017-03-31 12:29:03 -07:00
2017-02-27 18:43:46 -08:00
2017-04-08 00:47:49 -07:00
2017-02-27 18:43:46 -08:00
2017-01-30 16:32:25 -08:00
2016-12-14 23:48:11 -05:00
2017-02-27 18:43:46 -08:00
2016-12-05 19:03:49 -05:00