Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86191
b: refs/heads/master
c: c9872fe
h: refs/heads/master
i:
  86189: 2827d6f
  86187: 0635e88
  86183: 0b0afe1
  86175: ef84c70
v: v3
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Feb 22, 2008
1 parent 31d8b2c commit 05d4649
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26106e3ca379e30790c41d8835e79395437152ec
refs/heads/master: c9872fe1add5709fffd42249e6ca1080999aa06a
10 changes: 6 additions & 4 deletions trunk/drivers/scsi/stex.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ 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);
stex_internal_copy(ccb->cmd, p, &count, scsi_sg_count(ccb->cmd),
ST_FROM_CMD);
memset(p->base, 0, sizeof(u32)*6);
*(unsigned long *)(p->base) = pci_resource_start(hba->pdev, 0);
p->rom_addr = 0;
Expand All @@ -485,7 +486,8 @@ static void stex_controller_info(struct st_hba *hba, struct st_ccb *ccb)
p->subid =
hba->pdev->subsystem_vendor << 16 | hba->pdev->subsystem_device;

stex_internal_copy(ccb->cmd, p, &count, ccb->sg_count, ST_TO_CMD);
stex_internal_copy(ccb->cmd, p, &count, scsi_sg_count(ccb->cmd),
ST_TO_CMD);
}

static void
Expand Down Expand Up @@ -699,7 +701,7 @@ static void stex_copy_data(struct st_ccb *ccb,
if (ccb->cmd == NULL)
return;
stex_internal_copy(ccb->cmd,
resp->variable, &count, ccb->sg_count, ST_TO_CMD);
resp->variable, &count, scsi_sg_count(ccb->cmd), ST_TO_CMD);
}

static void stex_ys_commands(struct st_hba *hba,
Expand All @@ -724,7 +726,7 @@ static void stex_ys_commands(struct st_hba *hba,

count = STEX_EXTRA_SIZE;
stex_internal_copy(ccb->cmd, hba->copy_buffer,
&count, ccb->sg_count, ST_FROM_CMD);
&count, scsi_sg_count(ccb->cmd), ST_FROM_CMD);
inq_data = (ST_INQ *)hba->copy_buffer;
if (inq_data->DeviceTypeQualifier != 0)
ccb->srb_status = SRB_STATUS_SELECTION_TIMEOUT;
Expand Down

0 comments on commit 05d4649

Please sign in to comment.