|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [BUG] USB assertion triggers in usb_packet_complete() |
Date: | Thu, 13 Oct 2011 12:51:51 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110927 Red Hat/3.1.15-1.el6_1 Thunderbird/3.1.15 |
Hi,
Hi Thomas, I hit the same bug recently and Gerd has posted a patch which you can test: http://patchwork.ozlabs.org/patch/118726/Thanks for the hint, Stefan, you're right, that seems to be the same bug. Your patch is working fine in my scenario, too. However, Gerd's patch is not working for me, the assertion still triggers. It seems like usb_packet_complete() is called for the leaf node before it is called for the hub node, so the leaf node already set p->owner = NULL.
Ah, right, on completion the call chain goes the other way around, so the usb_handle_packet() style approach doesn't fly.
I think going with Stefans approach + a big fat comment is the best solution then. I'll go queue up a patch.
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |