EXT4: Add missing brelse() in ext4_iget() One of the invalid error paths in ext4_iget() forgot to brelse() the inode buffer head. Fix that. Found during code review. Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx> --- fs/ext4/inode.c | 1 + 1 file changed, 1 insertion(+) Index: linux-2.6.32-rc6-ak/fs/ext4/inode.c =================================================================== --- linux-2.6.32-rc6-ak.orig/fs/ext4/inode.c +++ linux-2.6.32-rc6-ak/fs/ext4/inode.c @@ -4882,6 +4882,7 @@ struct inode *ext4_iget(struct super_blo (le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block) + EXT4_SB(sb)->s_gdb_count)) || (ei->i_file_acl >= ext4_blocks_count(EXT4_SB(sb)->s_es)))) { + brelse(bh); ext4_error(sb, __func__, "bad extended attribute block %llu in inode #%lu", ei->i_file_acl, inode->i_ino); -- 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