aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/depca.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/depca.c')
-rw-r--r--drivers/net/depca.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/depca.c b/drivers/net/depca.c
index 0941d40f046f..e946c43d3b10 100644
--- a/drivers/net/depca.c
+++ b/drivers/net/depca.c
@@ -938,11 +938,8 @@ static int depca_start_xmit(struct sk_buff *skb, struct net_device *dev)
938 if (skb->len < 1) 938 if (skb->len < 1)
939 goto out; 939 goto out;
940 940
941 if (skb->len < ETH_ZLEN) { 941 if (skb_padto(skb, ETH_ZLEN))
942 skb = skb_padto(skb, ETH_ZLEN); 942 goto out;
943 if (skb == NULL)
944 goto out;
945 }
946 943
947 netif_stop_queue(dev); 944 netif_stop_queue(dev);
948 945