diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-07-18 07:05:37 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-07-18 07:05:37 +0000 |
commit | f308f1cc8380079f1c3978a39bd316cda1983d9c (patch) | |
tree | 037c7b1c5be9dedf54adb059127f7ff7b18d1c29 | |
parent | 5e02cc3eb2f942db676d3ef618b82e0e18bee325 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/dev/isp/isp_target.c | 6 |
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); } |