From: Ed Lin Date: Tue, 5 Dec 2006 01:49:28 +0000 (-0800) Subject: [SCSI] stex: fix controller_info command handling X-Git-Tag: v2.6.20-rc2~6^2~13^2~5^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4eea9dc45fa7feb42e6dce32d94ea9ea4d64e40b;p=linux-2.6-omap-h63xx.git [SCSI] stex: fix controller_info command handling This command needs information from both firmware and driver. First copy information from firmware to buffer, then fill in driver information. Signed-off-by: Ed Lin Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c index 91d484c0dd9..ea0d8246131 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c @@ -507,6 +507,7 @@ static void stex_controller_info(struct st_hba *hba, struct st_ccb *ccb) size_t count = sizeof(struct st_frame); p = hba->copy_buffer; + stex_internal_copy(ccb->cmd, p, &count, ccb->sg_count, ST_FROM_CMD); memset(p->base, 0, sizeof(u32)*6); *(unsigned long *)(p->base) = pci_resource_start(hba->pdev, 0); p->rom_addr = 0;