diff options
| author | Jens Axboe <axboe@suse.de> | 2003-04-07 19:14:26 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-07 19:14:26 -0700 |
| commit | ab780cf981db4cfc0d2293993f0c4714cf12b58b (patch) | |
| tree | 3e8053db93974f7b4c544fb89460713f004499c7 | |
| parent | ca2e9255467734259ec187579243afc40e5dcf06 (diff) | |
[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.
| -rw-r--r-- | drivers/ide/ide-probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index a8bf16aca5b3..ee02087fe64f 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); |
