md/raid10: Fix memleak in r10buf_pool_alloc
authormajianpeng <majianpeng@gmail.com>
Tue, 22 May 2012 03:55:03 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:03 +0000 (13:55 +1000)
commit5fdd2cf8265c6de0f190dea80cc4c50da8f31293
treeddb9bb1da6654d9d9de86c916fceed8280be95fe
parentda8840a747c0dbf49506ec906757a6b87b9741e9
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