]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: Fix memleak in r10buf_pool_alloc
authormajianpeng <majianpeng@gmail.com>
Tue, 24 Apr 2012 00:57:52 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:52 +0000 (10:57 +1000)
commita98be7421cd81146249b33593056b10d2ee0de02
tree15ee47c31babd332d4408d0ac99019092b5177d6
parentcc366f743ad9eaae8c4b61bd6b63988c0452f444
md/raid10: Fix memleak in r10buf_pool_alloc

If the allocation of rep1_bio fails, we currently don't free the 'bio'
of the same dev.

Reported by kmemleak.

Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c