diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index b8f226ae263..50539da467b 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -1068,7 +1068,7 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt) | |||
1068 | * values. | 1068 | * values. |
1069 | */ | 1069 | */ |
1070 | if (resid && | 1070 | if (resid && |
1071 | ((unsigned)(cp->request_bufflen - resid) < | 1071 | ((unsigned)(scsi_bufflen(cp) - resid) < |
1072 | cp->underflow)) { | 1072 | cp->underflow)) { |
1073 | DEBUG2(qla_printk(KERN_INFO, ha, | 1073 | DEBUG2(qla_printk(KERN_INFO, ha, |
1074 | "scsi(%ld:%d:%d:%d): Mid-layer underflow " | 1074 | "scsi(%ld:%d:%d:%d): Mid-layer underflow " |
@@ -1076,7 +1076,7 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt) | |||
1076 | "error status.\n", ha->host_no, | 1076 | "error status.\n", ha->host_no, |
1077 | cp->device->channel, cp->device->id, | 1077 | cp->device->channel, cp->device->id, |
1078 | cp->device->lun, resid, | 1078 | cp->device->lun, resid, |
1079 | cp->request_bufflen)); | 1079 | scsi_bufflen(cp))); |
1080 | 1080 | ||
1081 | cp->result = DID_ERROR << 16 | lscsi_status; | 1081 | cp->result = DID_ERROR << 16 | lscsi_status; |
1082 | } | 1082 | } |