Commit fef61e75 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix wavelan.c using skb_padto

parent cf43d744
...@@ -3008,6 +3008,12 @@ static int wavelan_packet_xmit(struct sk_buff *skb, device * dev) ...@@ -3008,6 +3008,12 @@ static int wavelan_packet_xmit(struct sk_buff *skb, device * dev)
(unsigned) skb); (unsigned) skb);
#endif #endif
if (skb->len < ETH_ZLEN) {
skb = skb_padto(skb, ETH_ZLEN);
if (skb == NULL)
return 0;
}
/* /*
* Block a timer-based transmit from overlapping. * Block a timer-based transmit from overlapping.
* In other words, prevent reentering this routine. * In other words, prevent reentering this routine.
......
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