fib_dxr: KASSERTs for chasing NULL ptr and runaway refcount suspects

MFC after:	1 week
This commit is contained in:
Marko Zec 2024-05-07 17:22:00 +02:00
parent ed541e201a
commit 7a5de1d4cc

View file

@ -1280,6 +1280,9 @@ dxr_change_rib_batch(struct rib_head *rnh, struct fib_change_queue *q,
da = dxr->aux;
KASSERT(da != NULL, ("%s: NULL dxr->aux", __FUNCTION__));
KASSERT(da->fd != NULL, ("%s: da->fd %p", __FUNCTION__, da->fd));
KASSERT(da->refcnt > 0, ("%s: da->refcnt %d", __FUNCTION__,
da->refcnt));
FIB_PRINTF(LOG_INFO, da->fd, "processing %d update(s)", q->count);
for (ui = 0; ui < q->count; ui++) {