Bruce Evans 0477138dad Fixed allocation of unit numbers. Allocate the amount of space actually
required (rounded up a little) instead of twice the previous amount (or
a fixed amount for the first allocation).

The bug caused memory corruption when a new unit number for a devclass
was more than about twice the previous maximum one (or more than 3 for
the first one), so it corrupted memory (which happened to be the atkbdc
port resource list) in the reporter's configuration with sio unit
numbers { 0, 25, 1, 2, ... }.

Reviewed by:	dfr
Reported by:	Leonid Lukiyanets <stalwar78@hotmail.com>
2000-06-11 07:19:20 +00:00
..
1999-10-29 18:09:36 +00:00
2000-06-07 18:54:41 +00:00
2000-05-22 17:09:13 +00:00
2000-06-10 19:21:20 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
1999-11-14 13:54:44 +00:00
2000-05-01 20:32:07 +00:00
2000-04-22 15:13:06 +00:00
1999-08-28 01:08:13 +00:00
2000-04-29 11:32:15 +00:00
1999-11-21 19:03:20 +00:00
1999-08-28 01:08:13 +00:00
2000-06-10 07:12:40 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00