]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7af1d1a83aa7847149d4bf9ab5bc50b281c5f330
tree95f4803da220a899cfb840fbbc1eb74e1b8ba003
parent118c4e3856a9c878191525a9f8dd9ecae11d11ea
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