]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 18:21:28 +0000 (11:21 -0700)
commit589c6eded10c77a12b7b2cf235b6b19a2bdb91fa
treefe6a40dd4997d2ba594de957bc2e860912b9de03
parent974bb793aded499491246f6f9826e26c2b127320
sfc/siena: fix null pointer dereference in efx_hard_start_xmit

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