Commit ab780cf9 authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] move q->queuedata assign after queue init

I want to make blk_init_queue() zero the queue, so we don't get anymore
nasty bugs with uninitialized variables. IDE is setting queuedata before
init though.
parent ca2e9255
......@@ -1008,8 +1008,8 @@ static void ide_init_queue(ide_drive_t *drive)
* do not.
*/
q->queuedata = HWGROUP(drive);
blk_init_queue(q, do_ide_request, &ide_lock);
q->queuedata = HWGROUP(drive);
drive->queue_setup = 1;
blk_queue_segment_boundary(q, 0xffff);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment