cfq-iosched: free cic_index if blkio_alloc_blkg_stats fails
commit8f8a594251e5260f53d746887890d0d2185ceebb
authormajianpeng <majianpeng@gmail.com>
Wed, 30 Nov 2011 14:47:48 +0000 (30 15:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:13:46 +0000 (6 14:13 -0800)
treefe49c65525bc1599823f4dc43569c69c6c36c862
parent183647b865aea1411c87f9b76b8c74511e34807d
cfq-iosched: free cic_index if blkio_alloc_blkg_stats fails

commit 2984ff38ccf6cbc02a7a996a36c7d6f69f3c6146 upstream.

If we fail allocating the blkpg stats, we free cfqd and cfgq.
But we need to free the IDA cfqd->cic_index as well.

Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/cfq-iosched.c