mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-16 19:04:41 +08:00
Btrfs: fix bh leak on __btrfs_open_devices path
'bh' is forgot to release if no error is detected Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
c7f895a2b2
commit
4f6c9328c6
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user