diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-05-26 10:28:09 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-05-26 10:28:09 -0400 |
commit | 8ea76900be3b4522396e2021260d2818a27b3a5b (patch) | |
tree | 309d11d55a90e1249a23c98b14f859eb1c5f7334 | |
parent | 944600930a37aa725ba6f93c3244e2d77a1e3581 (diff) | |
download | linux-stable-8ea76900be3b4522396e2021260d2818a27b3a5b.tar.gz linux-stable-8ea76900be3b4522396e2021260d2818a27b3a5b.tar.bz2 linux-stable-8ea76900be3b4522396e2021260d2818a27b3a5b.zip |
jbd2: Fix memory leak when verifying checksums in the journal
Cc: Andreas Dilger <adilger@clusterfs.com>
Cc: Girish Shilamkar <girish@clusterfs.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | fs/jbd2/recovery.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |