From 7187812d5e8d722f8d2553a54cd9737eb03aa0a6 Mon Sep 17 00:00:00 2001 From: mjacob Date: Sat, 6 Oct 2001 19:34:43 +0000 Subject: Whups- remember to zero the isr pointer arg. --- sys/dev/isp/isp_pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 73cdb54..c5af27e 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -835,8 +835,10 @@ isp_pci_rd_isr_2300(struct ispsoftc *isp, u_int16_t *isrp, struct isp_pcisoftc *pcs = (struct isp_pcisoftc *) isp; u_int32_t r2hisr; - if ((BXR2(pcs, IspVirt2Off(isp, BIU_ISR) & BIU2100_ISR_RISC_INT)) == 0) + if (!(BXR2(pcs, IspVirt2Off(isp, BIU_ISR) & BIU2100_ISR_RISC_INT))) { + *isrp = 0; return (0); + } r2hisr = bus_space_read_4(pcs->pci_st, pcs->pci_sh, IspVirt2Off(pcs, BIU_R2HSTSLO)); isp_prt(isp, ISP_LOGDEBUG3, "RISC2HOST ISR 0x%x", r2hisr); -- cgit v1.1