Commit b2215b8b authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

[PATCH] two byte offset for kaweth

this is the two byte offset patch to kaweth for 2.5
to prevent MIPS crashing and speed up other arches.
parent cffbb434
...@@ -567,6 +567,8 @@ static void kaweth_usb_receive(struct urb *urb) ...@@ -567,6 +567,8 @@ static void kaweth_usb_receive(struct urb *urb)
return; return;
} }
skb_reserve(skb, 2); /* Align IP on 16 byte boundaries */
skb->dev = net; skb->dev = net;
eth_copy_and_sum(skb, kaweth->rx_buf + 2, pkt_len, 0); eth_copy_and_sum(skb, kaweth->rx_buf + 2, pkt_len, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment