patch-2.3.46 linux/drivers/scsi/qlogicpti.c
Next file: linux/drivers/scsi/scsi.c
Previous file: linux/drivers/scsi/qlogicfas.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Feb 14 15:31:14 2000
- Orig file:
v2.3.45/linux/drivers/scsi/qlogicpti.c
- Orig date:
Fri Jan 28 15:09:08 2000
diff -u --recursive --new-file v2.3.45/linux/drivers/scsi/qlogicpti.c linux/drivers/scsi/qlogicpti.c
@@ -1074,7 +1074,7 @@
}
sg_count -= n;
}
- } else {
+ } else if (Cmnd->request_bufflen) {
Cmnd->SCp.ptr = (char *)(unsigned long)
sbus_map_single(qpti->sdev,
Cmnd->request_buffer,
@@ -1083,6 +1083,10 @@
cmd->dataseg[0].d_base = (u32) ((unsigned long)Cmnd->SCp.ptr);
cmd->dataseg[0].d_count = Cmnd->request_bufflen;
cmd->segment_cnt = 1;
+ } else {
+ cmd->dataseg[0].d_base = 0;
+ cmd->dataseg[0].d_count = 0;
+ cmd->segment_cnt = 1; /* Shouldn't this be 0? */
}
/* Committed, record Scsi_Cmd so we can find it later. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)