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 / wireless / ray_cs.c
index 61b83a5..879eb42 100644 (file)
@@ -30,6 +30,7 @@
  * 
 =============================================================================*/
 
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/proc_fs.h>
@@ -923,7 +924,8 @@ static int ray_dev_start_xmit(struct sk_buff *skb, struct net_device *dev)
 
     if (length < ETH_ZLEN)
     {
-       if (skb_padto(skb, ETH_ZLEN))
+       skb = skb_padto(skb, ETH_ZLEN);
+       if (skb == NULL)
                return 0;
        length = ETH_ZLEN;
     }