usb: gadget: g_ether: fix frame size check
authorIan Coolidge <iancoolidge@gmail.com>
Tue, 6 Nov 2012 21:00:10 +0000 (13:00 -0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 8 Nov 2012 14:04:50 +0000 (16:04 +0200)
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: Ian Coolidge <iancoolidge@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found