From: Dmitry Torokhov Date: Wed, 13 Apr 2011 06:06:28 +0000 (-0700) Subject: USB: xhci - also free streams when resetting devices X-Git-Tag: v2.6.39-rc4~16^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dea75d96ade3c7cd2bfe73f99c7b3291dc3d03a;p=pandora-kernel.git USB: xhci - also free streams when resetting devices Currently, when resetting a device, xHCI driver disables all but one endpoints and frees their rings, but leaves alone any streams that might have been allocated. Later, when users try to free allocated streams, we oops in xhci_setup_no_streams_ep_input_ctx() because ep->ring is NULL. Let's free not only rings but also stream data as well, so that calling free_streams() on a device that was reset will be safe. This should be queued for stable trees back to 2.6.35. Reviewed-by: Micah Elizabeth Scott Signed-off-by: Dmitry Torokhov Signed-off-by: Sarah Sharp Cc: stable@kernel.org --- Reading git-diff-tree failed