git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
/
depca.c
diff --git
a/drivers/net/depca.c
b/drivers/net/depca.c
index
b1cbe99
..
0941d40
100644
(file)
--- a/
drivers/net/depca.c
+++ b/
drivers/net/depca.c
@@
-235,6
+235,7
@@
=========================================================================
*/
=========================================================================
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
@@
-937,8
+938,11
@@
static int depca_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (skb->len < 1)
goto out;
if (skb->len < 1)
goto out;
- if (skb_padto(skb, ETH_ZLEN))
- goto out;
+ if (skb->len < ETH_ZLEN) {
+ skb = skb_padto(skb, ETH_ZLEN);
+ if (skb == NULL)
+ goto out;
+ }
netif_stop_queue(dev);
netif_stop_queue(dev);