diff options
author | Bjørn Mork <bjorn@mork.no> | 2012-01-15 08:35:28 +0100 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2012-01-15 08:35:28 +0100 |
commit | 6528209ba2c94f3a0ef946b7d808d9a15b30ec50 (patch) | |
tree | c3c1b8bcf8ae19f411c53c2f199f923742bcc256 /drivers/net/usb/asix.c | |
parent | a056fb3687c40b8a1123de1586f491285cb5fb1f (diff) | |
parent | f2ab2a127d480ee20caf8620440ccf13c014447a (diff) |
Merge remote branch 'stable/linux-2.6.32.y' into 2.6.32-mantismedia/2.6.32-mantis
Diffstat (limited to 'drivers/net/usb/asix.c')
-rw-r--r-- | drivers/net/usb/asix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c index 7312348629b..e794b3935cf 100644 --- a/drivers/net/usb/asix.c +++ b/drivers/net/usb/asix.c @@ -339,7 +339,7 @@ static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb) skb_pull(skb, (size + 1) & 0xfffe); - if (skb->len == 0) + if (skb->len < sizeof(header)) break; head = (u8 *) skb->data; @@ -1522,6 +1522,10 @@ static const struct usb_device_id products [] = { // ASIX 88772a USB_DEVICE(0x0db0, 0xa877), .driver_info = (unsigned long) &ax88772_info, +}, { + // Asus USB Ethernet Adapter + USB_DEVICE (0x0b95, 0x7e2b), + .driver_info = (unsigned long) &ax88772_info, }, { }, // END }; |