From: Theodore Ts'o Date: Mon, 26 May 2008 14:28:09 +0000 (-0400) Subject: jbd2: Fix memory leak when verifying checksums in the journal X-Git-Tag: firefly_0821_release~20001^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ea76900be3b4522396e2021260d2818a27b3a5b;p=firefly-linux-kernel-4.4.55.git jbd2: Fix memory leak when verifying checksums in the journal Cc: Andreas Dilger Cc: Girish Shilamkar Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index 5d0405a9e7ca..7199db52b2fd 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c @@ -344,6 +344,7 @@ static int calc_chksums(journal_t *journal, struct buffer_head *bh, *crc32_sum = crc32_be(*crc32_sum, (void *)obh->b_data, obh->b_size); } + put_bh(obh); } return 0; }