aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-05-26 10:28:09 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-05-26 10:28:09 -0400
commit8ea76900be3b4522396e2021260d2818a27b3a5b (patch)
tree309d11d55a90e1249a23c98b14f859eb1c5f7334 /fs
parent944600930a37aa725ba6f93c3244e2d77a1e3581 (diff)
downloadkernel_goldelico_gta04-8ea76900be3b4522396e2021260d2818a27b3a5b.zip
kernel_goldelico_gta04-8ea76900be3b4522396e2021260d2818a27b3a5b.tar.gz
kernel_goldelico_gta04-8ea76900be3b4522396e2021260d2818a27b3a5b.tar.bz2
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')
-rw-r--r--fs/jbd2/recovery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c
index 5d0405a..7199db5 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;
}