]> git.baikalelectronics.ru Git - kernel.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)
commit249bc03d05124d80d1a4e9f858ef1ef1bdd4ec48
tree90b58e9648ebff476c90ce7c3f28a0c832396e76
parent9ab864a4fb7fcf2dd690188f2664254ec9e40eea
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