Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c2b4813 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: cdc_ether: Ensure that default MTU is minimum 2048"

parents 7ffd252c 80924420
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -326,6 +326,9 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
		return -ENODEV;
	}

	if (dev->hard_mtu < 2048)
		dev->hard_mtu = 2048;

	return 0;

bad_desc: