qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 08/14] usb-linux: Don't try to open the same dev


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 08/14] usb-linux: Don't try to open the same device twice
Date: Wed, 01 Jun 2011 14:35:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110419 Red Hat/3.1.10-1.el6_0 Thunderbird/3.1.10

On 05/31/11 11:35, Hans de Goede wrote:
If a user wants to redirect 2 identical usb sticks, in theory this is
possible by doing:
usb_add host:1234:5678
usb_add host:1234:5678

But this will lead to us trying to open the first stick twice, since we
don't break the loop after having found a match in our filter list, so the next'
filter list entry will result in us trying to open the same device again.

Fix

Good catch.

Patch applied.

thanks,
  Gerd



reply via email to

[Prev in Thread] Current Thread [Next in Thread]