Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ext4: lost brelse in ext4_read_inode()

One of error path in ext4_read_inode() leaks bh since brelse is forgoten.

Signed-off-by: Kirill Korotaev <dev@openvz.org>
Acked-by: Vasily Averin <vvs@sw.ru>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kirill Korotaev and committed by
Linus Torvalds
e5d2861f e4a10a36

+3 -1
+3 -1
fs/ext4/inode.c
··· 2673 2673 */ 2674 2674 ei->i_extra_isize = le16_to_cpu(raw_inode->i_extra_isize); 2675 2675 if (EXT4_GOOD_OLD_INODE_SIZE + ei->i_extra_isize > 2676 - EXT4_INODE_SIZE(inode->i_sb)) 2676 + EXT4_INODE_SIZE(inode->i_sb)) { 2677 + brelse (bh); 2677 2678 goto bad_inode; 2679 + } 2678 2680 if (ei->i_extra_isize == 0) { 2679 2681 /* The extra space is currently unused. Use it. */ 2680 2682 ei->i_extra_isize = sizeof(struct ext4_inode) -