]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use an unsigned iterator for domain sets.
authormarkj <markj@FreeBSD.org>
Mon, 1 Oct 2018 18:51:39 +0000 (18:51 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 1 Oct 2018 18:51:39 +0000 (18:51 +0000)
commita19efb5e699f0f0722f5465eb62504fb8fb8127d
tree965976d26e68c514f5d18c8c2d320b36a7e32f61
parent2a6fe8c6e833dd6b1f69ef56a36316d692573b07
Use an unsigned iterator for domain sets.

Otherwise (iter % ds->ds_cnt) is not guaranteed to lie in the range
[0, MAXMEMDOM).

Reported by: pho
Reviewed by: kib
Approved by: re (rgrimes)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17374
sys/sys/_domainset.h
sys/vm/vm_domainset.h