Re: [Spice-devel] [PATCH] usbredirhost: host should not be marked as claimed on failure

2018-05-21 Thread Qiu Wenbo
You are right. I have changed my patch. diff --git a/usbredirhost/usbredirhost.c b/usbredirhost/usbredirhost.c index 3666227..609cf09 100644 --- a/usbredirhost/usbredirhost.c +++ b/usbredirhost/usbredirhost.c @@ -557,12 +557,20 @@ static int usbredirhost_claim(struct usbredirhost *host, int init

Re: [Spice-devel] [PATCH] usbredirhost: host should not be marked as claimed on failure

2018-05-15 Thread Christophe Fergeau
Hey, Sorry for the delay in looking at your patch, On Sat, May 12, 2018 at 12:00:26PM +0800, Qiu Wenbo wrote: > This is a patch trying to fix a bug caused by usbredir. The problem is when > usbredir failed to claim all interface of a USB device it won't set > host->claimed to 0. The patch makes

Re: [Spice-devel] [PATCH] usbredirhost: host should not be marked as claimed on failure

2018-05-11 Thread Qiu Wenbo
This is a patch trying to fix a bug caused by usbredir. The problem is when usbredir failed to claim all interface of a USB device it won't set host->claimed to 0. After that, usbredirhost_release run by usbredirhost_close will detach kernel driver and do a device reset even some one is still u

[Spice-devel] [PATCH] usbredirhost: host should not be marked as claimed on failure

2018-05-08 Thread Qiu Wenbo
You can redirect a USB device which is already redirected to another virtual machine on the second attempt. Signed-off-by: Qiu Wenbo --- usbredirhost/usbredirhost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usbredirhost/usbredirhost.c b/usbredirhost/usbredirhost.c index 3666227..e96d98

[Spice-devel] [PATCH] usbredirhost: host should not be marked as claimed on failure

2018-05-08 Thread Qiu Wenbo
You can redirect a USB device which is already redirected to another virtual machine on the second attempt. Signed-off-by: Qiu Wenbo --- usbredirhost/usbredirhost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usbredirhost/usbredirhost.c b/usbredirhost/usbredirhost.c index 3666227..e96d98