Skip to content

Commit

Permalink
jbd2: Fix memory leak when verifying checksums in the journal
Browse files Browse the repository at this point in the history
Cc: Andreas Dilger <[email protected]>
Cc: Girish Shilamkar <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
  • Loading branch information
tytso committed May 26, 2008
1 parent 9446009 commit 8ea7690
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/jbd2/recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ea7690

Please sign in to comment.