From 5332b1ce28909b6fe5a65050e5bd88f45f531ae6 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 23 Apr 2020 01:05:33 -0400 Subject: [PATCH] freebsd_network: Remove bogus KASSERT. As pointed out by halamix, root_size is set to > 0 during radix_bitmap creation, and never changed after that. So this is a bogus check. Fixes #14941. --- src/libs/compat/freebsd_network/unit.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libs/compat/freebsd_network/unit.cpp b/src/libs/compat/freebsd_network/unit.cpp index 0eacc7254c..eafaee95f0 100644 --- a/src/libs/compat/freebsd_network/unit.cpp +++ b/src/libs/compat/freebsd_network/unit.cpp @@ -62,9 +62,6 @@ delete_unrhdr(struct unrhdr* idStore) mtx_lock(idStore->storeMutex); - KASSERT(idStore->idBuffer->root_size == 0, - ("ID-Store: %s: some ids are still in use..", __func__)); - radix_bitmap_destroy(idStore->idBuffer); mtx_unlock(idStore->storeMutex);