Files
linux/drivers/net
Dinh Nguyen d2bc6fc51e net: ethernet: stmmac: fix write to sgmii_adapter_base
commit 5fd1fe4807 upstream.

I made a mistake with the commit a6aaa00324 ("net: ethernet: stmmac:
fix altr_tse_pcs function when using a fixed-link"). I should have
tested against both scenario of having a SGMII interface and one
without.

Without the SGMII PCS TSE adpater, the sgmii_adapter_base address is
NULL, thus a write to this address will fail.

Cc: stable@vger.kernel.org
Fixes: a6aaa00324 ("net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link")
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lore.kernel.org/r/20220420152345.27415-1-dinguyen@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-09 09:14:41 +02:00
..
2021-08-03 13:05:26 +01:00
2021-12-29 12:28:44 +01:00
2022-04-20 09:34:21 +02:00
2021-07-27 20:11:44 +01:00
2021-07-27 20:11:43 +01:00
2021-06-28 12:44:17 -07:00
2021-08-04 10:10:12 +01:00
2021-07-27 20:11:44 +01:00
2021-08-03 13:05:26 +01:00