Skip to content

Commit

Permalink
Merge branch 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block
Browse files Browse the repository at this point in the history
* 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block:
  block: fix use-after-free bug in blk throttle code
  • Loading branch information
torvalds committed Oct 23, 2010
2 parents 5f05647 + 7ad58c0 commit 35da7a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,6 @@ void blk_cleanup_queue(struct request_queue *q)
if (q->elevator)
elevator_exit(q->elevator);

blk_throtl_exit(q);

blk_put_queue(q);
}
EXPORT_SYMBOL(blk_cleanup_queue);
Expand Down
2 changes: 2 additions & 0 deletions block/blk-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 35da7a3

Please sign in to comment.