.. | .. |
---|
1600 | 1600 | printk("scsi%d (%d:%d) PHASE MISMATCH IN SEND MESSAGE %d remain, return %p[%04x], phase %s\n", host->host_no, pun, lun, count, (void *)temp, temp - hostdata->pScript, sbcl_to_string(NCR_700_readb(host, SBCL_REG))); |
---|
1601 | 1601 | #endif |
---|
1602 | 1602 | resume_offset = hostdata->pScript + Ent_SendMessagePhaseMismatch; |
---|
1603 | | - } else if(dsp >= to32bit(&slot->pSG[0].ins) && |
---|
| 1603 | + } else if (slot && dsp >= to32bit(&slot->pSG[0].ins) && |
---|
1604 | 1604 | dsp <= to32bit(&slot->pSG[NCR_700_SG_SEGMENTS].ins)) { |
---|
1605 | 1605 | int data_transfer = NCR_700_readl(host, DBC_REG) & 0xffffff; |
---|
1606 | 1606 | int SGcount = (dsp - to32bit(&slot->pSG[0].ins))/sizeof(struct NCR_700_SG_List); |
---|