usb: ohci: Do not resubmit and leak urbs for interrupt packets
authorHans de Goede <hdegoede@redhat.com>
Sun, 10 May 2015 12:10:22 +0000 (14:10 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 15 May 2015 00:49:32 +0000 (18:49 -0600)
commit47976d2c16c1921f6115936fea93a61e1881787d
tree1f48baa1cc11b65dc64367d5215630d3714ce319
parente253637be72c3a50ce6ba5992170b7a4b0a6f046
usb: ohci: Do not resubmit and leak urbs for interrupt packets

The u-boot usb code uses polling for all endpoints, including interrupt
endpoints, so urbs should never be automatically resubmitted.

This also fixes a leak of the urb, as submit_int_msg() did not check if
an already re-submitted urb exists before creating a new one.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ohci-hcd.c