aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/usb/asix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c
index 71e2b0523bc..3ae80eccd0e 100644
--- a/drivers/net/usb/asix.c
+++ b/drivers/net/usb/asix.c
@@ -35,6 +35,7 @@
35#include <linux/crc32.h> 35#include <linux/crc32.h>
36#include <linux/usb/usbnet.h> 36#include <linux/usb/usbnet.h>
37#include <linux/slab.h> 37#include <linux/slab.h>
38#include <linux/if_vlan.h>
38 39
39#define DRIVER_VERSION "22-Dec-2011" 40#define DRIVER_VERSION "22-Dec-2011"
40#define DRIVER_NAME "asix" 41#define DRIVER_NAME "asix"
@@ -321,7 +322,7 @@ static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
321 return 0; 322 return 0;
322 } 323 }
323 324
324 if ((size > dev->net->mtu + ETH_HLEN) || 325 if ((size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) ||
325 (size + offset > skb->len)) { 326 (size + offset > skb->len)) {
326 netdev_err(dev->net, "asix_rx_fixup() Bad RX Length %d\n", 327 netdev_err(dev->net, "asix_rx_fixup() Bad RX Length %d\n",
327 size); 328 size);