block: fix use-after-free bug in blk throttle code
[linux-2.6.git] / block / blk-sysfs.c
index da8a8a4..013457f 100644 (file)
@@ -471,6 +471,8 @@ static void blk_release_queue(struct kobject *kobj)
 
        blk_sync_queue(q);
 
+       blk_throtl_exit(q);
+
        if (rl->rq_pool)
                mempool_destroy(rl->rq_pool);