Home
last modified time | relevance | path

Searched hist:"8 d3d7c2029c1b360f1a6b0a2fca470b57eb575c0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/usb/
H A Dusbnet.cdiff 8d3d7c2029c1b360f1a6b0a2fca470b57eb575c0 Wed Sep 18 07:17:38 CDT 2019 Bjørn Mork <bjorn@mork.no> usbnet: ignore endpoints with invalid wMaxPacketSize

Endpoints with zero wMaxPacketSize are not usable for transferring
data. Ignore such endpoints when looking for valid in, out and
status pipes, to make the drivers more robust against invalid and
meaningless descriptors.

The wMaxPacketSize of these endpoints are used for memory allocations
and as divisors in many usbnet minidrivers. Avoiding zero is therefore
critical.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>