projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5cc44b
)
mlx4_en: Validate port up prior to transmitting
author
Yevgeny Petrilin
<yevgenyp@mellanox.co.il>
Tue, 24 Aug 2010 03:46:07 +0000
(
03:46
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 24 Aug 2010 21:54:50 +0000
(14:54 -0700)
We might try to use resources which were not activated.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_tx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/mlx4/en_tx.c
b/drivers/net/mlx4/en_tx.c
index 580968f304eb9d24f752e38fc368e64208700510..3deabd1d0357881f5e6fef866cb5f9af224343cc 100644
(file)
--- 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)
int lso_header_size;
void *fragptr;
+ if (!priv->port_up)
+ goto tx_drop;
+
real_size = get_real_size(skb, dev, &lso_header_size);
if (unlikely(!real_size))
goto tx_drop;