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 / atarilance.c
index 91783a8..442b2cb 100644 (file)
@@ -804,7 +804,8 @@ static int lance_start_xmit( struct sk_buff *skb, struct net_device *dev )
                ++len;
                
        if (len > skb->len) {
-               if (skb_padto(skb, len))
+               skb = skb_padto(skb, len);
+               if (skb == NULL)
                        return 0;
        }