On 9/14/14 12:33 PM, Darrick J. Wong wrote: > Free the buffer head if the journal descriptor block fails checksum > verification. > > This is the jbd2 port of the e2fsprogs patch "e2fsck: free bh on csum > verify error in do_one_pass". > > Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> Reviewed-by: Eric Sandeen <sandeen@xxxxxxxxxx> > --- > fs/jbd2/recovery.c | 1 + > 1 file changed, 1 insertion(+) > > > diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c > index 9b329b5..bcbef08 100644 > --- a/fs/jbd2/recovery.c > +++ b/fs/jbd2/recovery.c > @@ -525,6 +525,7 @@ static int do_one_pass(journal_t *journal, > !jbd2_descr_block_csum_verify(journal, > bh->b_data)) { > err = -EIO; > + brelse(bh); > goto failed; > } > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-ext4" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html