aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/mlx4/en_tx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/mlx4/en_tx.c b/drivers/net/mlx4/en_tx.c
index 580968f304eb..3deabd1d0357 100644
--- a/drivers/net/mlx4/en_tx.c
+++ b/drivers/net/mlx4/en_tx.c
@@ -612,6 +612,9 @@ netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)
612 int lso_header_size; 612 int lso_header_size;
613 void *fragptr; 613 void *fragptr;
614 614
615 if (!priv->port_up)
616 goto tx_drop;
617
615 real_size = get_real_size(skb, dev, &lso_header_size); 618 real_size = get_real_size(skb, dev, &lso_header_size);
616 if (unlikely(!real_size)) 619 if (unlikely(!real_size))
617 goto tx_drop; 620 goto tx_drop;