diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2011-04-20 06:06:40 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-05-23 13:24:42 -0400 |
commit | 4f6c9328c6c0d8558907f16579a9d47815abef80 (patch) | |
tree | d65bf3702ec48b30894dbebfc36ed3869f6abb28 /fs/btrfs/volumes.c | |
parent | c7f895a2b2d1a002810d52e7b6653c9dc2fd0b0b (diff) |
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index deca1a0326ad..290100fc47be 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -597,6 +597,7 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices, | |||
597 | list_add(&device->dev_alloc_list, | 597 | list_add(&device->dev_alloc_list, |
598 | &fs_devices->alloc_list); | 598 | &fs_devices->alloc_list); |
599 | } | 599 | } |
600 | brelse(bh); | ||
600 | continue; | 601 | continue; |
601 | 602 | ||
602 | error_brelse: | 603 | error_brelse: |