From ab780cf981db4cfc0d2293993f0c4714cf12b58b Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 7 Apr 2003 19:14:26 -0700 Subject: [PATCH] [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. --- drivers/ide/ide-probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index a8bf16aca5b3e..ee02087fe64f1 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -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); -- 2.53.0