diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-12-13 00:07:46 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-13 00:07:46 -0500 |
commit | 783e3385a134305d49d7b431df6e591265e7ec14 (patch) | |
tree | 7db0b8f854201e2ad343ea5b1c6fab7c3bca5a9b /drivers/net/skge.c | |
parent | fd803241744ad6e4262b6588c6af89e8fb794098 (diff) | |
parent | 1cf9e8a7865c0ac216034e519cf6b8505055ea50 (diff) | |
download | kernel_samsung_aries-783e3385a134305d49d7b431df6e591265e7ec14.zip kernel_samsung_aries-783e3385a134305d49d7b431df6e591265e7ec14.tar.gz kernel_samsung_aries-783e3385a134305d49d7b431df6e591265e7ec14.tar.bz2 |
Merge branch 'upstream-fixes'
Diffstat (limited to 'drivers/net/skge.c')
-rw-r--r-- | drivers/net/skge.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 7164678..8b6e2a1 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c @@ -2280,11 +2280,13 @@ static int skge_xmit_frame(struct sk_buff *skb, struct net_device *dev) } if (unlikely(skge->tx_avail < skb_shinfo(skb)->nr_frags +1)) { - netif_stop_queue(dev); - spin_unlock_irqrestore(&skge->tx_lock, flags); + if (!netif_stopped(dev)) { + netif_stop_queue(dev); - printk(KERN_WARNING PFX "%s: ring full when queue awake!\n", - dev->name); + printk(KERN_WARNING PFX "%s: ring full when queue awake!\n", + dev->name); + } + spin_unlock_irqrestore(&skge->tx_lock, flags); return NETDEV_TX_BUSY; } |