From d2aa9c0ac13bfc8314d9f215653f0d33f8163cbf Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Tue, 18 Sep 2007 06:21:41 +0000 Subject: [PATCH] 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 --- qla_isp/linux/isp_linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qla_isp/linux/isp_linux.c b/qla_isp/linux/isp_linux.c index 14cfdd294..be2167f1a 100644 --- a/qla_isp/linux/isp_linux.c +++ b/qla_isp/linux/isp_linux.c @@ -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; }