svn commit: r359551 - stable/12/sys/dev/ciss

Alexander Motin mav at FreeBSD.org
Thu Apr 2 00:28:36 UTC 2020


Author: mav
Date: Thu Apr  2 00:28:26 2020
New Revision: 359551
URL: https://svnweb.freebsd.org/changeset/base/359551

Log:
  MFC r359110: Add missing STAILQ_INIT() in ciss_disable_adapter().
  
  I think it should fix reported panic after "ADAPTER HEARTBEAT FAILED".

Modified:
  stable/12/sys/dev/ciss/ciss.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/ciss/ciss.c
==============================================================================
--- stable/12/sys/dev/ciss/ciss.c	Wed Apr  1 23:36:16 2020	(r359550)
+++ stable/12/sys/dev/ciss/ciss.c	Thu Apr  2 00:28:26 2020	(r359551)
@@ -3566,6 +3566,7 @@ ciss_disable_adapter(struct ciss_softc *sc)
     pci_disable_busmaster(sc->ciss_dev);
     sc->ciss_flags &= ~CISS_FLAG_RUNNING;
 
+    STAILQ_INIT(&qh);
     for (i = 1; i < sc->ciss_max_requests; i++) {
 	cr = &sc->ciss_request[i];
 	if ((cr->cr_flags & CISS_REQ_BUSY) == 0)


More information about the svn-src-all mailing list