summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-07-18 07:05:37 +0000
committermjacob <mjacob@FreeBSD.org>2000-07-18 07:05:37 +0000
commitf308f1cc8380079f1c3978a39bd316cda1983d9c (patch)
tree037c7b1c5be9dedf54adb059127f7ff7b18d1c29 /sys
parent5e02cc3eb2f942db676d3ef618b82e0e18bee325 (diff)
downloadFreeBSD-src-f308f1cc8380079f1c3978a39bd316cda1983d9c.zip
FreeBSD-src-f308f1cc8380079f1c3978a39bd316cda1983d9c.tar.gz
If debugging set, zero out an incoming response entry
when we're done reading it (makes checking things easier). Before calling isp_notify_ack make sure we're at RUNSTATE- elsewise we can be responding to LIPs or SCSI bus resets before we've finished some of the wiring.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/isp_target.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c
index dfd38d5..a099849 100644
--- a/sys/dev/isp/isp_target.c
+++ b/sys/dev/isp/isp_target.c
@@ -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);
}
OpenPOWER on IntegriCloud