ext4: fix memory leaks in error path handling of ext4_ext_zeroout()
authorJing Zhang <zj.barak@gmail.com>
Wed, 12 May 2010 04:00:00 +0000 (00:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 12 May 2010 04:00:00 +0000 (00:00 -0400)
commitb720303df7352d4a7a1f61e467e0a124913c0d41
treed0c102111ed28ced2d3a0dbfed987f9b8ed5db37
parentc26d0bad3d0e951487e5dee36632dd3817f42b10
ext4: fix memory leaks in error path handling of ext4_ext_zeroout()

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>
fs/ext4/extents.c