]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
jbd2: Fix memory leak when verifying checksums in the journal
authorTheodore Ts'o <tytso@mit.edu>
Mon, 26 May 2008 14:28:09 +0000 (10:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 May 2008 14:28:09 +0000 (10:28 -0400)
Cc: Andreas Dilger <adilger@clusterfs.com>
Cc: Girish Shilamkar <girish@clusterfs.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/recovery.c

index 5d0405a9e7ca081f1ce72cefd4d4b82c10c9b3fd..7199db52b2fdb5ab5a198a52e1ab7ac2194a2da3 100644 (file)
@@ -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;
 }