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,
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to