PATCH: fix cciss scsi breakage

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 14 Feb 2003 21:02:37 +0000 (GMT)


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.60-ref/drivers/block/cciss_scsi.c linux-2.5.60-ac1/drivers/block/cciss_scsi.c
--- linux-2.5.60-ref/drivers/block/cciss_scsi.c 2003-02-14 21:21:37.000000000 +0000
+++ linux-2.5.60-ac1/drivers/block/cciss_scsi.c 2003-02-14 19:01:45.000000000 +0000
@@ -1379,10 +1379,10 @@

// 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... */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/