]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Fix memory and buffer head leak in callers to ext4_ext_find_extent()
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 25 Feb 2008 21:54:37 +0000 (16:54 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 25 Feb 2008 21:54:37 +0000 (16:54 -0500)
commit81026706e41ed3bac3d9d0eb5c1ae420a917ae1c
tree155ae1b76392b38a6079dcc5de15b123b3c20953
parent09f88ec2d800aa2bad12e17a9112f73d1f9f0e7e
ext4: Fix memory and buffer head leak in callers to ext4_ext_find_extent()

The path variable returned via ext4_ext_find_extent is a kmalloc
variable and needs to be freeded.  It also contains a reference to
buffer_head which needs to be dropped.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c
fs/ext4/migrate.c
include/linux/ext4_fs_extents.h