Merge "USB: gadget: u_ether: Change skb->len check for jumbo frames"

This commit is contained in:
Linux Build Service Account 2020-05-14 02:48:29 -07:00 • committed by Gerrit - the friendly Code Review server
commit d49d3b2f97

View file

@ -550,7 +550,7 @@ static void process_rx_w(struct work_struct *work)
while ((skb = skb_dequeue(&dev->rx_frames))) {
if (status < 0
|| ETH_HLEN > skb->len
|| skb->len > ETH_FRAME_LEN) {
|| skb->len > GETHER_MAX_ETH_FRAME_LEN) {
dev->net->stats.rx_errors++;
dev->net->stats.rx_length_errors++;
DBG(dev, "rx length %d\n", skb->len);