On Thursday 24 November 2005 9:54 pm, Chris Humbert wrote:
> 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: Chris Humbert <[EMAIL PROTECTED]>

Looks fine to me.


> diff --git a/drivers/usb/core/buffer.c b/drivers/usb/core/buffer.c
> --- a/drivers/usb/core/buffer.c
> +++ b/drivers/usb/core/buffer.c
> @@ -55,6 +55,9 @@ int hcd_buffer_create (struct usb_hcd *h
>       char            name [16];
>       int             i, size;
>  
> +     if (!hcd->self.controller->dma_mask)
> +             return 0;
> +
>       for (i = 0; i < HCD_BUFFER_POOLS; i++) { 
>               if (!(size = pool_max [i]))
>                       continue;
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> [email protected]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to