projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b16da7
)
jbd2: fix a potential leak of a journal_head on an error path
author
Ding Dinghua
<dingdinghua@nrchpc.ac.cn>
Wed, 25 May 2011 21:43:48 +0000
(17:43 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 25 May 2011 21:43:48 +0000
(17:43 -0400)
drop jh->b_jcount in error path
Signed-off-by: Ding Dinghua <dingdinghua@nrchpc.ac.cn>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/transaction.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/jbd2/transaction.c
b/fs/jbd2/transaction.c
index 9dfdf010f1df77735b560ad6e64cb3665512c739..3eec82d32fd4c6886fdf823e7d3690ca2e665162 100644
(file)
--- a/
fs/jbd2/transaction.c
+++ b/
fs/jbd2/transaction.c
@@
-922,8
+922,8
@@
int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
*/
JBUFFER_TRACE(jh, "cancelling revoke");
jbd2_journal_cancel_revoke(handle, jh);
- jbd2_journal_put_journal_head(jh);
out:
+ jbd2_journal_put_journal_head(jh);
return err;
}