projects
/
wrapfs-4.18.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee0b39
)
ext4: add missing brelse() in set_flexbg_block_bitmap()'s error path
author
Vasily Averin
<vvs@virtuozzo.com>
Sat, 3 Nov 2018 20:22:10 +0000
(16:22 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:22:07 +0000
(09:22 +0100)
commit
cea5794122125bf67559906a0762186cf417099c
upstream.
Fixes: 33afdcc5402d ("ext4: add a function which sets up group blocks ...")
Cc: stable@kernel.org # 3.3
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/resize.c
patch
|
blob
|
history
diff --git
a/fs/ext4/resize.c
b/fs/ext4/resize.c
index ff0968b98eb1bb0db0b31b4a1a7ed193d1bf3667..c2901805fe8f09f8ab8ef5d2a0490ba8d9abf1c6 100644
(file)
--- a/
fs/ext4/resize.c
+++ b/
fs/ext4/resize.c
@@
-459,16
+459,18
@@
static int set_flexbg_block_bitmap(struct super_block *sb, handle_t *handle,
BUFFER_TRACE(bh, "get_write_access");
err = ext4_journal_get_write_access(handle, bh);
- if (err)
+ if (err) {
+ brelse(bh);
return err;
+ }
ext4_debug("mark block bitmap %#04llx (+%llu/%u)\n",
first_cluster, first_cluster - start, count2);
ext4_set_bits(bh->b_data, first_cluster - start, count2);
err = ext4_handle_dirty_metadata(handle, NULL, bh);
+ brelse(bh);
if (unlikely(err))
return err;
- brelse(bh);
}
return 0;