]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Convert md(4) to use alloc_unr(9) and alloc_unr_specific(9) for unit
authorJaakko Heinonen <jh@FreeBSD.org>
Thu, 22 Jul 2010 10:24:28 +0000 (10:24 +0000)
committerJaakko Heinonen <jh@FreeBSD.org>
Thu, 22 Jul 2010 10:24:28 +0000 (10:24 +0000)
commitf4e7c5a894efbbaae4c8da90d4c6a45eebad86df
tree2b5864d1f16393ddd8680e810d2e08ff1f75dcff
parente2b801ddd94ef0f1c968779e2ee5bf9840927f8c
Convert md(4) to use alloc_unr(9) and alloc_unr_specific(9) for unit
number allocation. The old approach had some problems such as it allowed
an overflow to occur in the unit number calculation.

PR: kern/122288
sys/dev/md/md.c