Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Nov 2009 00:52:14 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern subr_bus.c
Message-ID:  <200911120052.nAC0qb48062759@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
attilio     2009-11-12 00:52:14 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_bus.c 
  Log:
  SVN rev 199209 on 2009-11-12 00:52:14Z by attilio
  
  The building the dev nameunit string, in devclass_add_device() is based
  on the assumption that the unit linked with the device is invariant but
  that can change when calling devclass_alloc_unit() (because -1 is passed
  or, more simply, because the unit choosen is beyond the table limits).
  This results in a completely bogus string building.
  
  Fix this by reserving the necessary room for all the possible characters
  printable by a positive integer (we do not allow for negative unit
  number).
  
  Reported by:    Sandvine Incorporated
  Reviewed by:    emaste
  Sponsored by:   Sandvine Incorporated
  MFC:            1 week
  
  Revision  Changes    Path
  1.235     +2 -1      src/sys/kern/subr_bus.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911120052.nAC0qb48062759>