CVSROOT: /cvs Module name: src Changes by: [email protected] 2009/11/12 13:16:37
Modified files:
sys/dev/usb : uhub.c usbdivar.h
Log message:
Avoid using the trick of malloc'ing more than a struct to grow the array
of the last element. Bad technique. Use a pointer to the array. The
author (or later people) will often not pay attention to the consequences
of structure padding & alignment issues when they add new fields to the
base structure, and there will be fireworks.
tested by jasper, too
