]> git.baikalelectronics.ru Git - kernel.git/commit
usb: catch attempts to submit urbs with a vmalloc'd transfer buffer
authorDan Williams <dan.j.williams@intel.com>
Thu, 8 May 2014 16:25:56 +0000 (19:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 May 2014 01:03:24 +0000 (10:03 +0900)
commit6e49d19b23584bc04a2fae60d6e623a326d11e32
treeb16a13a26c04b099add552c7edb14d71a7db5da3
parent21fb65ffe5b6714a91d0c74ed7cb459f9d9b0a6b
usb: catch attempts to submit urbs with a vmalloc'd transfer buffer

Save someone else the debug cycles of figuring out why a driver's
transfer request is failing or causing undefined system behavior.
Buffers submitted for dma must come from GFP allocated / DMA-able
memory.

Return -EAGAIN matching the return value for dma_mapping_error() cases.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c