]> git.baikalelectronics.ru Git - kernel.git/commit
USB: EHCI: fix for leaking isochronous data
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 30 Jan 2013 21:35:02 +0000 (16:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2013 09:14:48 +0000 (10:14 +0100)
commit320e27a7b830c9b4edcb7b8be435ad1512f92d5c
tree3bbb588669e38c1798c2e22cf5087dfc81a193b8
parent23ce6de88b70d87e84bc75b17d1b4ce9439e1e64
USB: EHCI: fix for leaking isochronous data

This patch (as1653) fixes a bug in ehci-hcd.  Unlike iTD entries, an
siTD entry in the periodic schedule may not complete until the frame
after the one it belongs to.  Consequently, when scanning the periodic
schedule it is necessary to start with the frame _preceding_ the one
where the previous scan ended.

Not doing this properly can result in memory leaks and failures to
complete isochronous URBs.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Andy Leiserson <andy@leiserson.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-sched.c