From: Alan Stern Date: Thu, 6 Jan 2011 15:17:09 +0000 (-0500) Subject: USB: EHCI: fix DMA deallocation bug X-Git-Tag: v2.6.38-rc3~7^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f75593ceaa08e6d27aec1a5de31cded19e850dd1;p=pandora-kernel.git 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 Tested-by: Larry Finger CC: David Brownell CC: Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed