]> err.no Git - linux-2.6/commitdiff
[SCSI] stex: fix controller_info command handling
authorEd Lin <ed.lin@promise.com>
Tue, 5 Dec 2006 01:49:28 +0000 (17:49 -0800)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 5 Dec 2006 17:31:43 +0000 (11:31 -0600)
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 <ed.lin@promise.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/stex.c

index 91d484c0dd9365f00d7f943c225449987035c197..ea0d82461317e6961d38f58bb298417970c3964c 100644 (file)
@@ -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;