ext4: release buffer when checksum failed
[linux-block.git] / fs / ext4 / dir.c
index 80a28b29727981a4b710c7873c4860a30d41fdc7..3882fbc5e21554b8cac67831ed381f5e7b63c6fd 100644 (file)
@@ -185,6 +185,7 @@ static int ext4_readdir(struct file *filp,
                                        "at offset %llu",
                                        (unsigned long long)filp->f_pos);
                        filp->f_pos += sb->s_blocksize - offset;
+                       brelse(bh);
                        continue;
                }
                set_buffer_verified(bh);