projects
/
wrapfs-2.6.37.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
989e44d
)
ext4: add missing brelse() update_backups()'s error path
author
Vasily Averin
<vvs@virtuozzo.com>
Sat, 3 Nov 2018 21:11:19 +0000
(17:11 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:27:43 +0000
(09:27 +0100)
commit
ea0abbb648452cdb6e1734b702b6330a7448fcf8
upstream.
Fixes: ac27a0ec112a ("ext4: initial copy of files from ext3")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 2.6.19
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 783280ebc2fe231225e9eb4e42bbb53a6105e276..550eb2dfe357b0b25dc6755a85bea8420fc8aa38 100644
(file)
--- a/
fs/ext4/resize.c
+++ b/
fs/ext4/resize.c
@@
-1095,8
+1095,10
@@
static void update_backups(struct super_block *sb, sector_t blk_off, char *data,
backup_block, backup_block -
ext4_group_first_block_no(sb, group));
BUFFER_TRACE(bh, "get_write_access");
- if ((err = ext4_journal_get_write_access(handle, bh)))
+ if ((err = ext4_journal_get_write_access(handle, bh))) {
+ brelse(bh);
break;
+ }
lock_buffer(bh);
memcpy(bh->b_data, data, size);
if (rest)