Re: usbredirparser: fix EAGAIN error in *_do_write()

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

 



> From your description looks like the patch is reversed.

Yes, it's reversed, sorry.

> I'm not that familiar with usbredir code but looking at the code
> if usbredirparser_do_write returns 0 the server should just loop
> again.

You are right. I found this bug when I debugged the usbredir sources for RedHat/CentOS 7 SRPM package and it had this old code

        w = parser->callb.write_func(parser->callb.priv,
                                     wbuf->buf + wbuf->pos, w);
        if (w <= 0) {
            ret = -1;
            break;
        }

where "w == 0" was treated as an erroneous case.

So, my patch is for the old code. I overlooked that this error was already fixed in 2013 the current repository.
Sorry, my fault. Never mind.
(Redhat 7.x packages sometimes are very old, though. This is frustrating...)

Regards,
  Dmitriy

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]