mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ext4: avoid possible double brelse() in add_new_gdb() on error path
Fixes: b40971426a ("ext4: add error checking to calls to ...")
Reported-by: Vasily Averin <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected] # 2.6.38
This commit is contained in:
parent
feaf264ce7
commit
4f32c38b46
1 changed files with 1 additions and 0 deletions
|
|
@ -871,6 +871,7 @@ static int add_new_gdb(handle_t *handle, struct inode *inode,
|
|||
err = ext4_handle_dirty_metadata(handle, NULL, gdb_bh);
|
||||
if (unlikely(err)) {
|
||||
ext4_std_error(sb, err);
|
||||
iloc.bh = NULL;
|
||||
goto exit_inode;
|
||||
}
|
||||
brelse(dind);
|
||||
|
|
|
|||
Loading…
Reference in a new issue