compile fix cciss (bug 338)
Subsystems (2)
PATCH 1/1 compile fix cciss (bug 338)
This patch is against scsi-misc-2.5 for
http://bugme.osdl.org/show_bug.cgi?id=338
I only compile tested this change
-andmike
--
Michael Anderson
[email protected]
cciss_scsi.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
------
drivers/block/cciss_scsi.c +3 -4
@@ -1262,7 +1262,6 @@int buflen, datalen;struct Scsi_Host *sh; -int found;ctlr_info_t *ci;int cntl_num;
@@ -1379,11 +1378,11 @@// 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, - scsi3addr); + 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... */ /* pretend to mid layer that we got selection timeout */