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:
parent
5e8ff9a4f1
commit
249504c849
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user