cvs commit: src/sys/kern subr_bus.c

Nate Lawson njl at FreeBSD.org
Sun Apr 3 15:23:19 PDT 2005


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


More information about the cvs-src mailing list