summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormjacob <mjacob@NetBSD.org>2000-07-19 22:19:00 +0000
committermjacob <mjacob@NetBSD.org>2000-07-19 22:19:00 +0000
commit061578878139bb75874883a76bced9bcaebc6b2f (patch)
tree740543bd6538e4437490b2f4babe173df10d9e91 /sys/dev
parent93379fb3414cf190c280a8503eb132fe17a015bc (diff)
zero result queue entry when done if debugging.
don't do an isp_notify_ack if we're not at run state.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/isp_target.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/isp_target.c b/sys/dev/ic/isp_target.c
index ffe07db3ef8..81cbb4cb955 100644
--- a/sys/dev/ic/isp_target.c
+++ b/sys/dev/ic/isp_target.c
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_target.c,v 1.5 2000/07/05 22:25:34 mjacob Exp $ */
+/* $NetBSD: isp_target.c,v 1.6 2000/07/19 22:19:00 mjacob Exp $ */
/*
* Machine and OS Independent Target Mode Code for the Qlogic SCSI/FC adapters.
*
@@ -240,6 +240,9 @@ isp_target_notify(isp, vptr, optrp)
rval = -1;
break;
}
+ if (isp_tdebug) {
+ MEMZERO(vptr, QENTRY_LEN);
+ }
#undef atiop
#undef at2iop
#undef ctiop
@@ -533,7 +536,8 @@ isp_target_async(isp, bus, event)
isp->isp_name, event);
break;
}
- isp_notify_ack(isp, NULL);
+ if (isp->isp_state == ISP_RUNSTATE)
+ isp_notify_ack(isp, NULL);
}