diff options
-rw-r--r-- | block/cfq-iosched.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 16ace89613bc..3beed83437a3 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -4036,6 +4036,11 @@ static void *cfq_init_queue(struct request_queue *q) | |||
4036 | 4036 | ||
4037 | if (blkio_alloc_blkg_stats(&cfqg->blkg)) { | 4037 | if (blkio_alloc_blkg_stats(&cfqg->blkg)) { |
4038 | kfree(cfqg); | 4038 | kfree(cfqg); |
4039 | |||
4040 | spin_lock(&cic_index_lock); | ||
4041 | ida_remove(&cic_index_ida, cfqd->cic_index); | ||
4042 | spin_unlock(&cic_index_lock); | ||
4043 | |||
4039 | kfree(cfqd); | 4044 | kfree(cfqd); |
4040 | return NULL; | 4045 | return NULL; |
4041 | } | 4046 | } |