In cases when we load driver and initiator send some events like LIP, we may

not be ready to ack event and finally there is oops in interrupt. Fix this.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@188 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Stanislaw Gruszka
2007-09-18 06:21:41 +00:00
parent b10fbd2b80
commit d2aa9c0ac1

View File

@@ -2979,7 +2979,9 @@ isp_async(ispsoftc_t *isp, ispasync_t cmd, ...)
if (isp->isp_osinfo.hcb == 0) {
isp_prt(isp, ISP_LOGWARN, "ISPASYNC_TARGET_NOTIFY with target mode not enabled");
isp_notify_ack(isp, mp->nt_lreserved);
if (mp->nt_need_ack) {
isp_notify_ack(isp, mp->nt_lreserved);
}
break;
}