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:
parent
e4a38f5407
commit
c4be460e84
@ -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__);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user