summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2021-06-13 00:11:46 +0000
committerriastradh <riastradh@NetBSD.org>2021-06-13 00:11:46 +0000
commitd3f47f5147d1efa541058c22d05b808c8ea1b153 (patch)
treebbdad5469073abe47d15758016000dd5f3e532f0 /sys/dev
parentea2ec439285b035eb3d0a3f4004b91de787b88a2 (diff)
autoconf(9): Sprinkle KASSERT(dev->dv_pending == 0) in dealloc paths.
This would have made uhub's config_pending_incr leak more obvious by crashing in KASSERT(dev->dv_pending == 0) early on, rather than crashing in a tailq panic later on when the config_pending list gets corrupted with use-after-free because nothing took the device off dv_pending_list when attached. (This is slightly academic now because config_detach blocks until dev->dv_pending == 0, but it doesn't hurt and makes the intent clearer.)
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions