Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2017 00:09:58 +0000 (UTC)
From:      "Landon J. Fuller" <landonf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326449 - head/sys/dev/bhnd/bhndb
Message-ID:  <201712020009.vB209wtP034165@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: landonf
Date: Sat Dec  2 00:09:58 2017
New Revision: 326449
URL: https://svnweb.freebsd.org/changeset/base/326449

Log:
  bhndb(4): Fix incorrect assertion in bhndb_deregister_intr_handler().
  
  When deregistered, a handler should be in an 'active' state.
  
  Approved by:	adrian (mentor, implicit)
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/bhnd/bhndb/bhndb_subr.c

Modified: head/sys/dev/bhnd/bhndb/bhndb_subr.c
==============================================================================
--- head/sys/dev/bhnd/bhndb/bhndb_subr.c	Sat Dec  2 00:07:37 2017	(r326448)
+++ head/sys/dev/bhnd/bhndb/bhndb_subr.c	Sat Dec  2 00:09:58 2017	(r326449)
@@ -957,7 +957,7 @@ void
 bhndb_deregister_intr_handler(struct bhndb_resources *br,
     struct bhndb_intr_handler *ih)
 {
-	KASSERT(!ih->ih_active, ("duplicate deregistration of interrupt "
+	KASSERT(ih->ih_active, ("duplicate deregistration of interrupt "
 	    "handler %p", ih->ih_cookiep));
 
 	KASSERT(bhndb_find_intr_handler(br, ih) == ih,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712020009.vB209wtP034165>