From: Sarah Sharp Date: Wed, 4 Nov 2009 19:22:19 +0000 (-0800) Subject: USB: xhci: Fix scratchpad deallocation. X-Git-Tag: v2.6.32-rc8~12^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5294bea40666db5c5d6c336b8e4e55d69fa576ca;p=pandora-kernel.git USB: xhci: Fix scratchpad deallocation. The scratchpad_free() function uses xhci->page_size to free some memory with pci_free_consistent(). However, the page_size is set to zero before the call, causing kernel oopses on driver unload. Call scratchpad_free() before setting xhci->page_size to zero. Signed-off-by: Sarah Sharp Acked-by: John Youn Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed