From: Ding Dinghua Date: Thu, 26 May 2011 02:29:01 +0000 (+0800) Subject: jbd: fix a bug of leaking jh->b_jcount X-Git-Tag: firefly_0821_release~3680^2~4916^2~15 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bd5c9e1854e13d0c62a3de29a5fbc15dd6a4d8c6;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Jan Kara --- diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c index 83a661890868..dc39efd05d54 100644 --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c @@ -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; }