usb-uhci: stop queue filling when we find a in-flight td
commit52b0fecdba217e02d7e7eef975d942b153950b2f
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Mar 2012 17:25:25 +0000 (21 18:25 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Apr 2012 08:23:27 +0000 (17 10:23 +0200)
treea3ad85305d76fcdea10c8b30135be0f35a4f37de
parenteeb0cf9abf5992f35eca18c4cc63300df30521a4
usb-uhci: stop queue filling when we find a in-flight td

Not only QHs can form rings, but TDs too.  With the new
queuing/pipelining support we are following TD chains and
can actually walk in circles.  An assert() prevents us from
entering an endless loop then.

Fix is easy:  Just stop queuing when we figure the TD we are
about to queue up is in flight already.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-uhci.c