Merge "USB: gadget: u_ether: Change skb->len check for jumbo frames"
This commit is contained in:
commit
d49d3b2f97
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue