On Mon, 16 Jan 2017 15:30:15 +0200, Felipe Balbi <[email protected]> wrote: > so we need min() here? desc->bLength should always contain correct size.
It should, yes, there is a check when parsing descriptors. I was a bit worried at removing the "natural" maximum size (the one declared as part of the ioctl code). But if it is fine for you I'll remove it. Regards, -- Vincent Pelletier
pgp7Q1Q3jUjvQ.pgp
Description: Signature digitale OpenPGP
