projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a9c11
)
ext4: add missing brelse() update_backups()'s error path
author
Vasily Averin
<
[email protected]
>
Sat, 3 Nov 2018 21:11:19 +0000
(17:11 -0400)
committer
Theodore Ts'o
<
[email protected]
>
Sat, 3 Nov 2018 21:11:19 +0000
(17:11 -0400)
Fixes: ac27a0ec112a ("ext4: initial copy of files from ext3")
Signed-off-by: Vasily Averin <
[email protected]
>
Signed-off-by: Theodore Ts'o <
[email protected]
>
Cc:
[email protected]
# 2.6.19
fs/ext4/resize.c
patch
|
blob
|
history
diff --git
a/fs/ext4/resize.c
b/fs/ext4/resize.c
index 7131f35b62d9a889b6010fbeeb810f18c216340a..3df326ee6d506328ac3379b644c7202f19bd43bf 100644
(file)
--- a/
fs/ext4/resize.c
+++ b/
fs/ext4/resize.c
@@
-1121,8
+1121,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)