aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r--drivers/net/gianfar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index a64a4385f5a5..bd42502b85cf 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -1312,7 +1312,7 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev)
1312 spin_lock_irqsave(&priv->txlock, flags); 1312 spin_lock_irqsave(&priv->txlock, flags);
1313 1313
1314 /* check if there is space to queue this packet */ 1314 /* check if there is space to queue this packet */
1315 if (nr_frags > priv->num_txbdfree) { 1315 if ((nr_frags+1) > priv->num_txbdfree) {
1316 /* no space, stop the queue */ 1316 /* no space, stop the queue */
1317 netif_stop_queue(dev); 1317 netif_stop_queue(dev);
1318 dev->stats.tx_fifo_errors++; 1318 dev->stats.tx_fifo_errors++;