From owner-cvs-src@FreeBSD.ORG Sun Apr 3 22:23:19 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B3FC16A4CE; Sun, 3 Apr 2005 22:23:19 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E36D443D31; Sun, 3 Apr 2005 22:23:18 +0000 (GMT) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j33MNILU078679; Sun, 3 Apr 2005 22:23:18 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j33MNISb078678; Sun, 3 Apr 2005 22:23:18 GMT (envelope-from njl) Message-Id: <200504032223.j33MNISb078678@repoman.freebsd.org> From: Nate Lawson Date: Sun, 3 Apr 2005 22:23:18 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern subr_bus.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 22:23:19 -0000 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