mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
jbd: fix a bug of leaking jh->b_jcount
journal_get_create_access should drop jh->b_jcount in error handling path Signed-off-by: Ding Dinghua <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
05713082ab
commit
bd5c9e1854
1 changed files with 1 additions and 1 deletions
|
|
@ -844,8 +844,8 @@ int journal_get_create_access(handle_t *handle, struct buffer_head *bh)
|
|||
*/
|
||||
JBUFFER_TRACE(jh, "cancelling revoke");
|
||||
journal_cancel_revoke(handle, jh);
|
||||
journal_put_journal_head(jh);
|
||||
out:
|
||||
journal_put_journal_head(jh);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue