diff options
| author | Chengguang Xu <cgxu519@zoho.com.cn> | 2019-05-30 18:10:42 +0800 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2019-05-30 13:35:32 +0200 |
| commit | dc1f73802bd76bea60b9c93eb24a1d26472d2723 (patch) | |
| tree | 3cb0343289bb3d4a2d15a036eee00472c0586c3b /fs/ext2/ialloc.c | |
| parent | ext2: optimize ext2_xattr_get() (diff) | |
| download | linux-dc1f73802bd76bea60b9c93eb24a1d26472d2723.tar.gz linux-dc1f73802bd76bea60b9c93eb24a1d26472d2723.zip | |
ext2: add missing brelse() in ext2_new_inode()
There is a missing brelse of bitmap_bh in an error
path of ext2_new_inode().
Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2/ialloc.c')
| -rw-r--r-- | fs/ext2/ialloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 334dea4e499d..fda7d3f5b4be 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -509,6 +509,7 @@ repeat_in_this_group: /* * Scanned all blockgroups. */ + brelse(bitmap_bh); err = -ENOSPC; goto fail; got: |
