diff options
author | Alan Stern <[email protected]> | 2011-01-06 10:17:09 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2011-01-22 18:36:43 -0800 |
commit | f75593ceaa08e6d27aec1a5de31cded19e850dd1 (patch) | |
tree | 884e842e5ad6dbfd8035f8615106936d68c48a30 /tools/perf/util/trace-event-scripting.c | |
parent | 06f1b9715c324589b42be69ad33422b83bd42f02 (diff) |
USB: EHCI: fix DMA deallocation bug
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 <[email protected]>
Tested-by: Larry Finger <[email protected]>
CC: David Brownell <[email protected]>
CC: <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions