mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
14 lines
556 B
Diff
14 lines
556 B
Diff
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
|
|
index 3e7a3ac3a362..05dca3e5c93d 100644
|
|
--- a/drivers/net/usb/cdc_ether.c
|
|
+++ b/drivers/net/usb/cdc_ether.c
|
|
@@ -230,7 +230,7 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
|
|
goto bad_desc;
|
|
}
|
|
|
|
- if (header.usb_cdc_ether_desc) {
|
|
+ if (header.usb_cdc_ether_desc && info->ether->wMaxSegmentSize) {
|
|
dev->hard_mtu = le16_to_cpu(info->ether->wMaxSegmentSize);
|
|
/* because of Zaurus, we may be ignoring the host
|
|
* side link address we were given.
|