|
From: | Hans de Goede |
Subject: | Re: [Qemu-devel] [PATCH 1/8] usb: Add packet combining functions |
Date: | Thu, 01 Nov 2012 14:59:06 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
Hi, On 11/01/2012 11:08 AM, Gerd Hoffmann wrote:
On 10/31/12 13:47, Hans de Goede wrote:+ /* + * If we had leftover packets the hcd driver will have cancelled them + * and usb_combined_packet_cancel has already freed combined! + */ + if (state != leftover) { + g_free(combined); + }This calls for reference-counting USBCombinedPacket IMHO.
Here is a patch changing the way this is handled to something which hopefully will be more to your liking. Feel free to squash this into the original commit. Regards, Hans
0001-usb-combined-packet-Move-freeing-of-combined-to-usb_.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |