diff options
author | Bjørn Mork <bjorn@mork.no> | 2017-11-06 15:37:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-08 05:42:01 +0100 |
commit | 2cb80187ba065d7decad7c6614e35e07aec8a974 (patch) | |
tree | 5eaea6c250d176f2b2f04cf13a6708f6b495c7d4 /drivers/net/vmxnet3 | |
parent | bonding: discard lowest hash bit for 802.3ad layer3+4 (diff) | |
download | linux-2cb80187ba065d7decad7c6614e35e07aec8a974.tar.xz linux-2cb80187ba065d7decad7c6614e35e07aec8a974.zip |
net: cdc_ether: fix divide by 0 on bad descriptors
Setting dev->hard_mtu to 0 will cause a divide error in
usbnet_probe. Protect against devices with bogus CDC Ethernet
functional descriptors by ignoring a zero wMaxSegmentSize.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3')
0 files changed, 0 insertions, 0 deletions