Commit 4f6c9328 authored by Xiao Guangrong's avatar Xiao Guangrong Committed by Chris Mason

Btrfs: fix bh leak on __btrfs_open_devices path

'bh' is forgot to release if no error is detected
Signed-off-by: default avatarXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent c7f895a2
...@@ -597,6 +597,7 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices, ...@@ -597,6 +597,7 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
list_add(&device->dev_alloc_list, list_add(&device->dev_alloc_list,
&fs_devices->alloc_list); &fs_devices->alloc_list);
} }
brelse(bh);
continue; continue;
error_brelse: error_brelse:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment