Skip to content
Commit 8d3d7c20 authored by Bjørn Mork's avatar Bjørn Mork Committed by Jakub Kicinski
Browse files

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: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
parent 3fe4b335
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment