mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
jbd2: Fix memory leak when verifying checksums in the journal
Cc: Andreas Dilger <[email protected]> Cc: Girish Shilamkar <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]>
This commit is contained in:
parent
944600930a
commit
8ea76900be
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue