Re: documenting that transfer_buffer can be NULL if transfer_buffer_length is 0

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

 



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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux