]> git.hungrycats.org Git - linux/commitdiff
[PATCH] cciss init problem
authorJens Axboe <axboe@suse.de>
Sun, 31 Aug 2003 05:40:01 +0000 (22:40 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 31 Aug 2003 05:40:01 +0000 (22:40 -0700)
This assigns the queue properly.

drivers/block/cciss.c

index e16a993f539b8f14859e1fb3f30bf4a4eebe0875..a38f8eb1f73e9f98869114bd7ec67af1e7e163d0 100644 (file)
@@ -2525,6 +2525,9 @@ err_all:
        if (!q)
                goto err_all;
 
+       hba[i]->queue = q;
+       q->queuedata = hba[i];
+
        /* Initialize the pdev driver private data. 
                have it point to hba[i].  */
        pci_set_drvdata(pdev, hba[i]);
@@ -2545,7 +2548,6 @@ err_all:
 
        cciss_procinit(i);
 
-        q->queuedata = hba[i];
        blk_queue_bounce_limit(q, hba[i]->pdev->dma_mask);
 
        /* This is a hardware imposed limit. */