PATCH: audio driver urb allocation
authorDavid Brownell <david-b@packbell.net>
Wed, 27 Feb 2002 07:13:10 +0000 (23:13 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 27 Feb 2002 07:13:10 +0000 (23:13 -0800)
commit6d3d01de52c635ae845df252c46a56f1736042eb
tree4779329fd1d9ef6331f2feeb1d4a17ee7f8fe53d
parentd4f03d86433a2f8675b65c78f4cc1f6530dd5b25
PATCH: audio driver urb allocation

This fixes a bug in the audio driver which came from an
incorrect conversion from static to dynamic URB allocation.
It's against 2.5.5

I noticed this while trying to see exactly how ISO transfers
get used.  The bug is that while originally the driver statically
allocated several structures {urb + N * iso packet descriptors},
the update forgot to allocate the ISO descriptors.

Likely not many folk noticed this on 32 bit machines, where
sizeof urb == 92, because kmalloc rounds that up to 128,
adding 36 bytes of external padding.  The ISO descriptors
took up 32 bytes of that, which "just happened" to already
have been allocated but unused.
drivers/usb/audio.c