Commit 8ea76900 authored by Theodore Ts'o's avatar Theodore Ts'o

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: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 94460093
...@@ -344,6 +344,7 @@ static int calc_chksums(journal_t *journal, struct buffer_head *bh, ...@@ -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, *crc32_sum = crc32_be(*crc32_sum, (void *)obh->b_data,
obh->b_size); obh->b_size);
} }
put_bh(obh);
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment