ehci: fix frame timer invocation.
commit3bfecee2cb71f21cd39d6183f18b446c01917573
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 19 May 2017 12:04:28 +0000 (19 14:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 29 May 2017 12:19:16 +0000 (29 14:19 +0200)
tree5cd2fadd5d3525cee73b5d0ca360acc99c85c3f4
parent26022652c6fd067b9fa09280f5a6d6284a21c73f
ehci: fix frame timer invocation.

ehci registers ehci_frame_timer as both timer and bottom half, which
turned out to be a bad idea as it can be called as bottom half then
while it is running as timer, and it isn't prepared to handle recursive
calls.

Change the timer func to just schedule the bottom half to avoid this.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1449609
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170519120428.25981-1-kraxel@redhat.com
hw/usb/hcd-ehci.c