diff options
author | Karsten Wiese <fzuuzf@googlemail.com> | 2009-02-26 01:47:48 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-23 14:55:29 -0700 |
commit | 7492cd458092b19ac488c36a5287c2904490c214 (patch) | |
tree | a36edbaeef5f783135359dc93a970b4076905825 /lib/debugobjects.c | |
parent | 6b2f291c5eb49398ee3fba6e3acb5b787a2d6808 (diff) |
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 <fzu@wemgehoertderstaat.de>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions