Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / drivers / net / arm / ether3.c
index 0810741..f1d5b10 100644 (file)
@@ -518,7 +518,8 @@ ether3_sendpacket(struct sk_buff *skb, struct net_device *dev)
 
        length = (length + 1) & ~1;
        if (length != skb->len) {
-               if (skb_padto(skb, length))
+               skb = skb_padto(skb, length);
+               if (skb == NULL)
                        goto out;
        }