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
This commit is contained in:
landonf 2017-12-02 00:09:58 +00:00
parent 5e8ff9a4f1
commit 249504c849

View File

@ -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,