]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:32:17 +0000 (11:32 +0200)
commita4eadca702dff0768dd01be6789bbec2a18e5b0a
tree8e4f69d9d02a37bf824593bea4cfad0f281cc08b
parentb454f12cfeddb4b8e1d9abb5eb956cc1ba690df1
sfc/siena: fix null pointer dereference in efx_hard_start_xmit

[ Upstream commit 589c6eded10c77a12b7b2cf235b6b19a2bdb91fa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/sfc/siena/tx.c