diff options
Diffstat (limited to 'sys/kern/subr_unit.c')
-rw-r--r-- | sys/kern/subr_unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c index 84e7227..a66d9e9 100644 --- a/sys/kern/subr_unit.c +++ b/sys/kern/subr_unit.c @@ -326,8 +326,8 @@ new_unrhdr(int low, int high, struct mtx *mutex) { struct unrhdr *uh; - KASSERT(low <= high, - ("UNR: use error: new_unrhdr(%u, %u)", low, high)); + KASSERT(low >= 0 && high >= 0 && low <= high, + ("UNR: use error: new_unrhdr(%d, %d)", low, high)); uh = Malloc(sizeof *uh); if (mutex != NULL) uh->mtx = mutex; |