diff options
author | Dinh Nguyen <dinguyen@kernel.org> | 2022-04-20 10:23:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-09 09:14:41 +0200 |
commit | d2bc6fc51e584a3f0cbdf65f8fbfd5b923c44b49 (patch) | |
tree | 6127a5c4110ebee2790bc9e646760c9fefe24fc6 /drivers/dax | |
parent | 4e308b21bc16231c90112d839859c9e38f7ef986 (diff) | |
download | linux-stable-d2bc6fc51e584a3f0cbdf65f8fbfd5b923c44b49.tar.gz linux-stable-d2bc6fc51e584a3f0cbdf65f8fbfd5b923c44b49.tar.bz2 linux-stable-d2bc6fc51e584a3f0cbdf65f8fbfd5b923c44b49.zip |
net: ethernet: stmmac: fix write to sgmii_adapter_base
commit 5fd1fe4807f91ea0cca043114d929faa11bd4190 upstream.
I made a mistake with the commit a6aaa0032424 ("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: a6aaa0032424 ("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>
Diffstat (limited to 'drivers/dax')
0 files changed, 0 insertions, 0 deletions