From: Karsten Wiese Date: Thu, 26 Feb 2009 00:47:48 +0000 (+0100) Subject: USB: EHCI: Fix isochronous URB leak X-Git-Tag: v2.6.27.21~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=853998f496e6541748149f161ccd6882d4788f99;p=pandora-kernel.git USB: EHCI: Fix isochronous URB leak commit 508db8c954d55ed30f870d2c24d741ba6269d13c upstream. ehci-hcd uses usb_get_urb() and usb_put_urb() in an unbalanced way causing isochronous URB's kref.counts incrementing once per usb_submit_urb() call. The culprit is *usb being set to NULL when usb_put_urb() is called after URB is given back. Due to other fixes there is no need for ehci-hcd to deal with usb_get_urb() nor usb_put_urb() anymore, so patch removes their usages in ehci-hcd. Patch also makes ehci_to_hcd(ehci)->self.bandwidth_allocated adjust, if a stream finishes. Signed-off-by: Karsten Wiese Cc: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed