diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-05-26 16:28:09 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-05-26 16:28:09 +0200 |
commit | 8ea76900be3b4522396e2021260d2818a27b3a5b (patch) | |
tree | 309d11d55a90e1249a23c98b14f859eb1c5f7334 /fs/jbd2 | |
parent | ext4: fix online resize bug (diff) | |
download | linux-8ea76900be3b4522396e2021260d2818a27b3a5b.tar.xz linux-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>
Diffstat (limited to 'fs/jbd2')
-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; } |