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>
This commit is contained in:
parent
1b16da77f9
commit
3991b4008c
1 changed files with 1 additions and 1 deletions
|
@ -922,8 +922,8 @@ int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
|
||||||
*/
|
*/
|
||||||
JBUFFER_TRACE(jh, "cancelling revoke");
|
JBUFFER_TRACE(jh, "cancelling revoke");
|
||||||
jbd2_journal_cancel_revoke(handle, jh);
|
jbd2_journal_cancel_revoke(handle, jh);
|
||||||
jbd2_journal_put_journal_head(jh);
|
|
||||||
out:
|
out:
|
||||||
|
jbd2_journal_put_journal_head(jh);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue