]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
block: fix memory leak in bio_clone()
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 9 Mar 2009 09:42:45 +0000 (10:42 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 14 Mar 2009 20:06:52 +0000 (21:06 +0100)
commit059ea3318c8ede71851a52b4359fbf1ab0cec301
tree29a70645e27947d820884b1249d0d7f26b8ea0d8
parent87092698c665e0a358caf9825ae13114343027e8
block: fix memory leak in bio_clone()

If bio_integrity_clone() fails, bio_clone() returns NULL without freeing
the newly allocated bio.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/bio.c