On Mon, 16 Jan 2017 15:30:15 +0200, Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> 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
Attachment:
pgptWMX490aFw.pgp
Description: Signature digitale OpenPGP