[PATCH] btrfs: prevent memory leak

2019-09-23 Thread Navid Emamdoost
In btrfsic_mount if btrfsic_dev_state_alloc fails the allocated state will be leaked. It needs to be released on error handling path. Signed-off-by: Navid Emamdoost --- fs/btrfs/check-integrity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check

[PATCH] btrfs: prevent memory leak in super.c

2019-09-23 Thread Navid Emamdoost
In btrfs_mount_root the last error checking was not going to the error handling path. Fixed it. Signed-off-by: Navid Emamdoost --- fs/btrfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 1b151af25772..9f3f62c000fa 100644