projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
974bb79
)
sfc/siena: fix null pointer dereference in efx_hard_start_xmit
author
Íñigo Huguet
<ihuguet@redhat.com>
Thu, 15 Sep 2022 14:19:58 +0000
(16:19 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 20 Sep 2022 18:21:28 +0000
(11:21 -0700)
Like in previous patch for sfc, prevent potential (but unlikely) NULL
pointer dereference.
Fixes:
12804793b17c
("sfc: decouple TXQ type from label")
Reported-by: Tianhao Zhao <tizhao@redhat.com>
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
Link:
https://lore.kernel.org/r/20220915141958.16458-1-ihuguet@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/siena/tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sfc/siena/tx.c
b/drivers/net/ethernet/sfc/siena/tx.c
index
e166dcb
..
91e8759
100644
(file)
--- a/
drivers/net/ethernet/sfc/siena/tx.c
+++ b/
drivers/net/ethernet/sfc/siena/tx.c
@@
-336,7
+336,7
@@
netdev_tx_t efx_siena_hard_start_xmit(struct sk_buff *skb,
* previous packets out.
*/
if (!netdev_xmit_more())
- efx_tx_send_pending(
tx_queue->channel
);
+ efx_tx_send_pending(
efx_get_tx_channel(efx, index)
);
return NETDEV_TX_OK;
}