Files
linux/drivers/usb/host
Alan Stern bd49d662e0 USB: EHCI: fix DMA deallocation bug
commit f75593ceaa upstream.

This patch (as1440) fixes a bug in ehci-hcd.  ehci->periodic_size is
used to compute the size in a dma_alloc_coherent() call, but then it
gets changed later on.  As a result, the corresponding call to
dma_free_coherent() passes a different size from the original
allocation.  Fix the problem by adjusting ehci->periodic_size before
carrying out any of the memory allocations.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
CC: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-02-17 15:36:47 -08:00
..
2009-09-23 06:46:29 -07:00
2011-02-17 15:36:47 -08:00
2009-09-23 06:46:30 -07:00
2009-09-23 06:46:30 -07:00
2009-09-23 06:46:29 -07:00
2009-06-16 14:17:32 +10:00
2009-07-23 13:04:10 +09:00
2008-08-29 09:43:14 +02:00
2009-06-15 21:44:48 -07:00