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

Skip to content
Commit 23834e53 authored by Ian Coolidge's avatar Ian Coolidge Committed by Felipe Balbi
Browse files

usb: gadget: g_ether: fix frame size check



Checking skb->len against ETH_FRAME_LEN assumes a 1514
ethernet frame size. With an 802.1Q VLAN header, ethernet
frame length can now be 1518. Validate frame length against that.

Signed-off-by: default avatarIan Coolidge <iancoolidge@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent be44f1c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment