]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:39:38 +0000 (22:39 +0200)
commit3dfaa8bb8ab6f8537929142a204a7885c6abcbd7
tree5174d5db86068bba034d79415a67b6a281c3dd14
parentb115477d9454047b5ec23656275be78238ebc723
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