svn commit: r199209 - head/sys/kern
Attilio Rao
attilio at freebsd.org
Thu Nov 12 01:22:05 UTC 2009
2009/11/12 Attilio Rao <attilio at freebsd.org>:
> Author: attilio
> Date: Thu Nov 12 00:52:14 2009
> New Revision: 199209
> URL: http://svn.freebsd.org/changeset/base/199209
>
> Log:
> 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
Sorry, forgot to add:
reviewed by: jhb, imp
Attilio
--
Peace can only be achieved by understanding - A. Einstein
More information about the svn-src-head
mailing list