cfq-iosched: free cic_index if blkio_alloc_blkg_stats fails
authormajianpeng <majianpeng@gmail.com>
Wed, 30 Nov 2011 14:47:48 +0000 (15:47 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Nov 2011 14:47:48 +0000 (15:47 +0100)
commit2984ff38ccf6cbc02a7a996a36c7d6f69f3c6146
tree95f4803da220a899cfb840fbbc1eb74e1b8ba003
parent59bd71a81b66990564eac69aedd28ad87a2c81f4
cfq-iosched: free cic_index if blkio_alloc_blkg_stats fails

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>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/cfq-iosched.c