Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335594
b: refs/heads/master
c: 4fe5f07
h: refs/heads/master
v: v3
  • Loading branch information
Ian Coolidge authored and David S. Miller committed Nov 8, 2012
1 parent b20628c commit 4552903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0dad9e94bdb1e424c4feeed715dff2fe51528289
refs/heads/master: 4fe5f079b499d7ff34fd49f4005f09018c4e80aa
3 changes: 2 additions & 1 deletion trunk/drivers/usb/gadget/u_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/ctype.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/if_vlan.h>

#include "u_ether.h"

Expand Down Expand Up @@ -295,7 +296,7 @@ static void rx_complete(struct usb_ep *ep, struct usb_request *req)
while (skb2) {
if (status < 0
|| ETH_HLEN > skb2->len
|| skb2->len > ETH_FRAME_LEN) {
|| skb2->len > VLAN_ETH_FRAME_LEN) {
dev->net->stats.rx_errors++;
dev->net->stats.rx_length_errors++;
DBG(dev, "rx length %d\n", skb2->len);
Expand Down

0 comments on commit 4552903

Please sign in to comment.