On Wednesday 27 February 2013 10:27:32 Bjørn Mork wrote:

> I believe we could drop the reslength field altogether, avoiding this
> confusion. The field is only use to test for a 0 length read in a
> context where desc->length is known to be 0.  In fact, we are really
> interested in the total desc->length anyway.  The length of the last
> read is completely irrelevant.
> 
> If we don't drop it, then I believe you should set it to 0 on overflow.

But we want user space to read and notice the error condition.

        Regards
                Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to