mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +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 New Issue
Block a user