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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bd5c9e1854e13d0c62a3de29a5fbc15dd6a4d8c6;p=mv-sheeva.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 83a66189086..dc39efd05d5 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; }