diff options
-rw-r--r-- | drivers/net/usb/asix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c index d5b62a463401..c5c4b4def7fb 100644 --- a/drivers/net/usb/asix.c +++ b/drivers/net/usb/asix.c | |||
@@ -314,11 +314,11 @@ static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb) | |||
314 | skb_pull(skb, 4); | 314 | skb_pull(skb, 4); |
315 | 315 | ||
316 | while (skb->len > 0) { | 316 | while (skb->len > 0) { |
317 | if ((header & 0xffff) != ((~header >> 16) & 0xffff)) | 317 | if ((header & 0x07ff) != ((~header >> 16) & 0x07ff)) |
318 | netdev_err(dev->net, "asix_rx_fixup() Bad Header Length\n"); | 318 | netdev_err(dev->net, "asix_rx_fixup() Bad Header Length\n"); |
319 | 319 | ||
320 | /* get the packet length */ | 320 | /* get the packet length */ |
321 | size = (u16) (header & 0x0000ffff); | 321 | size = (u16) (header & 0x000007ff); |
322 | 322 | ||
323 | if ((skb->len) - ((size + 1) & 0xfffe) == 0) { | 323 | if ((skb->len) - ((size + 1) & 0xfffe) == 0) { |
324 | u8 alignment = (unsigned long)skb->data & 0x3; | 324 | u8 alignment = (unsigned long)skb->data & 0x3; |