diff options
author | Ding Dinghua <dingdinghua@nrchpc.ac.cn> | 2011-05-25 17:43:48 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-25 17:43:48 -0400 |
commit | 3991b4008cb12f3abfe8dbb049b03d1cc39a8440 (patch) | |
tree | 44a6de3b438813925a2992c68aed82f0f04ef27b | |
parent | 1b16da77f90328661fc7e556ad591f9ee6b7ef6a (diff) |
jbd2: fix a potential leak of a journal_head on an error path
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>
-rw-r--r-- | fs/jbd2/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 9dfdf010f1d..3eec82d32fd 100644 --- 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; } |