mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
1227a4f4ea
commit
1fe84e6f44
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326449
|
@ -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 a new issue