diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-08-20 18:24:35 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-10-12 21:41:15 +0100 |
commit | 1960ba10379b7ec973e516b96a9f230eaf6027ed (patch) | |
tree | 6cfb36de5f0ad116b1577768b99dc103666a5de1 /drivers/net/phy/microchip_t1.c | |
parent | 6166d59dc0c6283b352cc6ec6a0950eb668f0e95 (diff) |
net: phylink: avoid oops during initialisation
If we intend to use PCS operations, mac_pcs_get_state() will not be
implemented, so will be NULL. If we also intend to register the PCS
operations in mac_prepare() or mac_config(), then this leads to an
attempt to call NULL function pointer during phylink_start(). Avoid
this.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/net/phy/microchip_t1.c')
0 files changed, 0 insertions, 0 deletions