diff options
author | Bjørn Mork <bjorn@mork.no> | 2019-09-18 14:01:46 +0200 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-09-21 12:06:49 -0700 |
commit | 3fe4b3351301660653a2bc73f2226da0ebd2b95e (patch) | |
tree | f93772fd1eeff693a23a52b0a2c978e41b511c8f /drivers/acpi/Kconfig | |
parent | 7b09c2d052db4b4ad0b27b97918b46a7746966fa (diff) |
cdc_ncm: fix divide-by-zero caused by 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 driver more robust against invalid and
meaningless descriptors.
The wMaxPacketSize of the out pipe is used as divisor. So this change
fixes a divide-by-zero bug.
Reported-by: syzbot+ce366e2b8296e25d84f5@syzkaller.appspotmail.com
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'drivers/acpi/Kconfig')
0 files changed, 0 insertions, 0 deletions