]> 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>
Wed, 12 May 2010 04:00:00 +0000 (00:00 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:33 +0000 (18:07 -0500)
commitf0e3a4d72d0d88f3e0de052ed7efd3d24ec12547
tree341d7301d30fed87c439f65466183b3605b6d562
parent8758d50a6a0286c02af2c73ee93b7b84eaea7e1b
ext4: fix memory leaks in error path handling of ext4_ext_zeroout()

commit b720303df7352d4a7a1f61e467e0a124913c0d41 upstream.

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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ext4/extents.c