usb: Fix usb_ep_find_packet_by_id
commit6735d433729f80fab80c0a1f70ae131398645613
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Dec 2012 13:35:39 +0000 (14 14:35 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 7 Jan 2013 11:57:24 +0000 (7 12:57 +0100)
treea7eb1697af39a64b77eab7c272240a695cda14e2
parent027c03f7327faa696e1d876954a18b5214c18583
usb: Fix usb_ep_find_packet_by_id

usb_ep_find_packet_by_id mistakenly only checks the first packet and if that
is not a match, keeps trying the first packet! This patch fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/core.c