]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fix memory leaks in error path handling of ext4_ext_zeroout()
authorJing Zhang <zj.barak@gmail.com>
Mon, 31 May 2010 02:49:44 +0000 (22:49 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:21:17 +0000 (10:21 -0700)
commitcaf4fd5d6a45bf7f1db7a966354207475b212322
treee93ff13d42c13c33d90b1117dfc4cb89795eba92
parentee02586911929717c8a1ff47d0b447c615da0b70
ext4: fix memory leaks in error path handling of ext4_ext_zeroout()

commit b720303df7352d4a7a1f61e467e0a124913c0d41 upstream (as of v2.6.34-git13)

When EIO occurs after bio is submitted, there is no memory free
operation for bio, which results in memory leakage. And there is also
no check against bio_alloc() for bio.

Acked-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Jing Zhang <zj.barak@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/extents.c