diff options
author | Tristram Ha <[email protected]> | 2024-08-05 16:52:00 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-08-06 19:32:54 -0700 |
commit | c7a19018bd557c24072b59088ad2684fd83ea3f4 (patch) | |
tree | 44d15f5e2f7f6ea119c294bd8b1fd56769bbab8d /drivers/net/ethernet/intel/igc | |
parent | 3e7917c0cdad835a5121520fc5686d954b7a61ab (diff) |
net: dsa: microchip: Fix Wake-on-LAN check to not return an error
The wol variable in ksz_port_set_mac_address() is declared with random
data, but the code in ksz_get_wol call may not be executed so the
WAKE_MAGIC check may be invalid resulting in an error message when
setting a MAC address after starting the DSA driver.
Fixes: 3b454b6390c3 ("net: dsa: microchip: ksz9477: Add Wake on Magic Packet support")
Signed-off-by: Tristram Ha <[email protected]>
Reviewed-by: Oleksij Rempel <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions