diff options
author | Bjørn Mork <bjorn@mork.no> | 2019-09-18 14:17:38 +0200 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-09-21 12:06:55 -0700 |
commit | 8d3d7c2029c1b360f1a6b0a2fca470b57eb575c0 (patch) | |
tree | 960260760a86a6189cf73fc2c9bee21a44af7e0a /drivers/acpi/tables.c | |
parent | 3fe4b3351301660653a2bc73f2226da0ebd2b95e (diff) |
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>
Diffstat (limited to 'drivers/acpi/tables.c')
0 files changed, 0 insertions, 0 deletions