···1062 cp->device->id, cp->device->lun, cp,1063 cp->serial_number));106400000000000000000001065 if (sense_len)1066 DEBUG5(qla2x00_dump_buffer(cp->sense_buffer,1067 CMD_ACTUAL_SNSLEN(cp)));
···1062 cp->device->id, cp->device->lun, cp,1063 cp->serial_number));10641065+ /*1066+ * In case of a Underrun condition, set both the lscsi1067+ * status and the completion status to appropriate1068+ * values.1069+ */1070+ if (resid &&1071+ ((unsigned)(cp->request_bufflen - resid) <1072+ cp->underflow)) {1073+ DEBUG2(qla_printk(KERN_INFO, ha,1074+ "scsi(%ld:%d:%d:%d): Mid-layer underflow "1075+ "detected (%x of %x bytes)...returning "1076+ "error status.\n", ha->host_no,1077+ cp->device->channel, cp->device->id,1078+ cp->device->lun, resid,1079+ cp->request_bufflen));1080+1081+ cp->result = DID_ERROR << 16 | lscsi_status;1082+ }1083+1084 if (sense_len)1085 DEBUG5(qla2x00_dump_buffer(cp->sense_buffer,1086 CMD_ACTUAL_SNSLEN(cp)));