Date: Sun, 3 Apr 2005 22:23:18 +0000 (UTC) From: Nate Lawson <njl@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_bus.c Message-ID: <200504032223.j33MNISb078678@repoman.freebsd.org>
index | next in thread | raw e-mail
njl 2005-04-03 22:23:18 UTC
FreeBSD src repository
Modified files:
sys/kern subr_bus.c
Log:
maxunit is actually one higher than the greatest currently-allocated unit
in a devclass. All the other uses of maxunit are correct and this one was
safe since it checks the return value of devclass_get_device(), which would
always say that the highest unit device doesn't exist.
Reviewed by: dfr
MFC after: 3 days
Revision Changes Path
1.177 +1 -1 src/sys/kern/subr_bus.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504032223.j33MNISb078678>
