Merge branch 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block
* 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block: block: fix use-after-free bug in blk throttle code
This commit is contained in:
@@ -462,8 +462,6 @@ void blk_cleanup_queue(struct request_queue *q)
|
|||||||
if (q->elevator)
|
if (q->elevator)
|
||||||
elevator_exit(q->elevator);
|
elevator_exit(q->elevator);
|
||||||
|
|
||||||
blk_throtl_exit(q);
|
|
||||||
|
|
||||||
blk_put_queue(q);
|
blk_put_queue(q);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(blk_cleanup_queue);
|
EXPORT_SYMBOL(blk_cleanup_queue);
|
||||||
|
@@ -471,6 +471,8 @@ static void blk_release_queue(struct kobject *kobj)
|
|||||||
|
|
||||||
blk_sync_queue(q);
|
blk_sync_queue(q);
|
||||||
|
|
||||||
|
blk_throtl_exit(q);
|
||||||
|
|
||||||
if (rl->rq_pool)
|
if (rl->rq_pool)
|
||||||
mempool_destroy(rl->rq_pool);
|
mempool_destroy(rl->rq_pool);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user