init_unrhdr(): make it usable by initializing everything

Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D35014
This commit is contained in:
Konstantin Belousov 2022-04-21 00:58:22 +03:00
parent e4a38f5407
commit c4be460e84

View File

@ -347,6 +347,8 @@ init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex)
uh->high = high;
uh->first = 0;
uh->last = 1 + (high - low);
uh->busy = 0;
uh->alloc = 0;
check_unrhdr(uh, __LINE__);
}