Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76990
b: refs/heads/master
c: ee0ae92
h: refs/heads/master
v: v3
  • Loading branch information
Boaz Harrosh authored and James Bottomley committed Jan 12, 2008
1 parent 4c41573 commit 79e4d94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 8e31f1f4d94c8e7e09efab0166cb2ef2ceeec2ce
refs/heads/master: ee0ae927937ac8a30350cca1a7a75efafb13976e
10 changes: 5 additions & 5 deletions trunk/drivers/scsi/wd33c93.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,16 +407,16 @@ wd33c93_queuecommand(struct scsi_cmnd *cmd,
* - SCp.phase records this command's SRCID_ER bit setting
*/

if (cmd->use_sg) {
cmd->SCp.buffer = (struct scatterlist *) cmd->request_buffer;
cmd->SCp.buffers_residual = cmd->use_sg - 1;
if (scsi_bufflen(cmd)) {
cmd->SCp.buffer = scsi_sglist(cmd);
cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1;
cmd->SCp.ptr = sg_virt(cmd->SCp.buffer);
cmd->SCp.this_residual = cmd->SCp.buffer->length;
} else {
cmd->SCp.buffer = NULL;
cmd->SCp.buffers_residual = 0;
cmd->SCp.ptr = (char *) cmd->request_buffer;
cmd->SCp.this_residual = cmd->request_bufflen;
cmd->SCp.ptr = NULL;
cmd->SCp.this_residual = 0;
}

/* WD docs state that at the conclusion of a "LEVEL2" command, the
Expand Down

0 comments on commit 79e4d94

Please sign in to comment.