]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
USB: Sane memory allocation in option driver
authorOliver Neukum <oneukum@suse.de>
Fri, 1 Feb 2008 12:58:52 +0000 (13:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Feb 2008 23:38:48 +0000 (15:38 -0800)
commit2129c4e1b4469e1f9711a54e97e8ddf8b26bb62d
tree90b58e9648ebff476c90ce7c3f28a0c832396e76
parentbbc5d276ec1e24d48f794dae1c4bdfc1512f65d5
USB: Sane memory allocation in option driver

The option driver
- violates DMA coherency rules
- allocates ~16500 bytes in one chunk
This patch splits out the buffers and uses __get_free_page() to avoid
higher order allocations.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Acked-By: Matthias Urlichs <matthias@urlichs.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/option.c