]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix cciss scsi breakage
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Fri, 14 Feb 2003 06:31:45 +0000 (22:31 -0800)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 14 Feb 2003 06:31:45 +0000 (22:31 -0800)
drivers/block/cciss_scsi.c

index 71b4961987821cb23830b69607cabb753e860cd1..2d69519b5e842348a479b035e819913f9bdc9679 100644 (file)
@@ -1379,10 +1379,10 @@ cciss_scsi_queue_command (Scsi_Cmnd *cmd, void (* done)(Scsi_Cmnd *))
 
        // Get the ptr to our adapter structure (hba[i]) out of cmd->host.
        // We violate cmd->host privacy here.  (Is there another way?)
-       c = (ctlr_info_t **) &cmd->host->hostdata[0];   
+       c = (ctlr_info_t **) &cmd->device->host->hostdata[0];
        ctlr = (*c)->ctlr;
 
-       rc = lookup_scsi3addr(ctlr, cmd->channel, cmd->target, cmd->lun, 
+       rc = lookup_scsi3addr(ctlr, cmd->device->channel, cmd->device->id, cmd->device->lun, 
                        scsi3addr);
        if (rc != 0) {
                /* the scsi nexus does not match any that we presented... */