On Mon, 2 Jul 2018, Oliver Neukum wrote: > Hi, > > I am getting coverity reports because usbnet checks for zero length > transfers before it allocates buffers. Is the assumption that no > buffer is needed actually correct for every HCD and should I document > this? What reason could there be for specifying a buffer when you're not going to transfer any data? Any HCD that requires a buffer when the length is zero should be fixed. Go ahead and document it. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html