Commit bd39b7f1 authored by Chris Humbert's avatar Chris Humbert Committed by Greg Kroah-Hartman

[PATCH] USB: don't allocate dma pools for PIO HCDs

USB: don't allocate dma pools for PIO HCDs

hcd_buffer_alloc() and hcd_buffer_free() have a similar dma_mask
check and revert to kmalloc()/kfree(), but hcd_buffer_create()
doesn't check dma_mask and allocates unused dma pools.
Signed-off-by: default avatarChris Humbert <mahadri-kernel@drigon.com>
Acked-by: default avatarDavid Brownell <david-b@pacbell.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5d320294
...@@ -55,6 +55,9 @@ int hcd_buffer_create (struct usb_hcd *hcd) ...@@ -55,6 +55,9 @@ int hcd_buffer_create (struct usb_hcd *hcd)
char name [16]; char name [16];
int i, size; int i, size;
if (!hcd->self.controller->dma_mask)
return 0;
for (i = 0; i < HCD_BUFFER_POOLS; i++) { for (i = 0; i < HCD_BUFFER_POOLS; i++) {
if (!(size = pool_max [i])) if (!(size = pool_max [i]))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment