sfc: farch: fix TX queue lookup in TX event handling
authorEdward Cree <ecree.xilinx@gmail.com>
Tue, 20 Apr 2021 12:28:28 +0000 (13:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:36 +0000 (14:47 +0200)
commitbf2b941d0a6f2d3b9f5fa3c4c21bdd54f71ce253
tree51c1e3f69440d92cc06b366ae4e02da2f5be2318
parentfb791572d6747ef385f628450f8d57cd132e6e5a
sfc: farch: fix TX queue lookup in TX event handling

commit 83b09a1807415608b387c7bc748d329fefc5617e upstream.

We're starting from a TXQ label, not a TXQ type, so
 efx_channel_get_tx_queue() is inappropriate (and could return NULL,
 leading to panics).

Fixes: 12804793b17c ("sfc: decouple TXQ type from label")
Cc: stable@vger.kernel.org
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/sfc/farch.c