ehci: stop recursive calls to ehci_work_bh
commitad3c5412f2704672bb212bb82035c9b1a72db782
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 12 Jun 2017 07:31:09 +0000 (12 09:31 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Jun 2017 10:17:33 +0000 (13 12:17 +0200)
tree854b200ff3b4d54bc44d7ee953cca0206ff4b0db
parentd54fddea989ba4aa2912d49583d86ce01c0d27ea
ehci: stop recursive calls to ehci_work_bh

Can happen with usb-storage devices: ehci_work_bh calls usb-storage,
usb-storage calls into block layer, block layer may run BHs.

Add a simple bool and just do nothing in case we figure ehci_work_bh is
active.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170612073109.25930-1-kraxel@redhat.com
hw/usb/hcd-ehci.c
hw/usb/hcd-ehci.h