Re: [PATCH] USB: hub: make sure stale buffers are not enumerated

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

 



On 24.07.23 16:29, Alan Stern wrote:
How can it?  bDescriptorType is at the start of the device descriptor,
whereas bMaxPacketSize0 is more towards the end.  If the later part get
transferred from the device, the earlier part must have been transferred
as well.  Even if the transfer was short.

Do we really guarantee that in an error case the buffer is filled from front
to back?

	Regards
		Oliver




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

  Powered by Linux