aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/core/generic.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2011-01-06 10:17:09 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 15:13:41 -0800
commita76a1ca75a098183f2029fda1da489a6e57d1625 (patch)
tree825610f856d26b0424bd6c40703739b426b2eb64 /drivers/usb/core/generic.c
parent917b0e610357671f39b183f2bf3dd60ba4b26256 (diff)
USB: EHCI: fix DMA deallocation bug
commit f75593ceaa08e6d27aec1a5de31cded19e850dd1 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>
Diffstat (limited to 'drivers/usb/core/generic.c')
0 files changed, 0 insertions, 0 deletions