summaryrefslogtreecommitdiff
path: root/drivers/net/usb/gl620a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb/gl620a.c')
-rw-r--r--drivers/net/usb/gl620a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/usb/gl620a.c b/drivers/net/usb/gl620a.c
index e4a8a93fbaf7..1cc24e6f23e2 100644
--- a/drivers/net/usb/gl620a.c
+++ b/drivers/net/usb/gl620a.c
@@ -84,6 +84,10 @@ static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
u32 size;
u32 count;
+ /* This check is no longer done by usbnet */
+ if (skb->len < dev->net->hard_header_len)
+ return 0;
+
header = (struct gl_header *) skb->data;
// get the packet count of the received skb