diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index a0c37b2ee9ed..9b1dd4138072 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1153,6 +1153,7 @@ struct btrfs_root *btrfs_read_fs_root_no_radix(struct btrfs_root *tree_root, | |||
1153 | } | 1153 | } |
1154 | btrfs_free_path(path); | 1154 | btrfs_free_path(path); |
1155 | if (ret) { | 1155 | if (ret) { |
1156 | kfree(root); | ||
1156 | if (ret > 0) | 1157 | if (ret > 0) |
1157 | ret = -ENOENT; | 1158 | ret = -ENOENT; |
1158 | return ERR_PTR(ret); | 1159 | return ERR_PTR(ret); |