git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ext4: Fix buffer head reference leak in no-journal mode
[safe/jmp/linux-2.6]
/
fs
/
ext4
/
ext4_jbd2.c
diff --git
a/fs/ext4/ext4_jbd2.c
b/fs/ext4/ext4_jbd2.c
index
ad13a84
..
eb27fd0
100644
(file)
--- a/
fs/ext4/ext4_jbd2.c
+++ b/
fs/ext4/ext4_jbd2.c
@@
-43,6
+43,8
@@
int __ext4_journal_forget(const char *where, handle_t *handle,
ext4_journal_abort_handle(where, __func__, bh,
handle, err);
}
+ else
+ brelse(bh);
return err;
}
@@
-57,6
+59,8
@@
int __ext4_journal_revoke(const char *where, handle_t *handle,
ext4_journal_abort_handle(where, __func__, bh,
handle, err);
}
+ else
+ brelse(bh);
return err;
}