Skip to content
Commit c2fc6e3a authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Andy Whitcroft
Browse files

ext4: plug a buffer_head leak in an error path of ext4_iget()

(cherry picked from commit 567f3e9a

)

One of the invalid error paths in ext4_iget() forgot to brelse() the
inode buffer head.  Fix it by adding a brelse() in the common error
return path, which also simplifies function.

Thanks to Andi Kleen <ak@linux.intel.com> reporting the problem.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 89e36476
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment