diff options
| author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-08-28 11:53:53 +0100 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2020-08-31 12:23:16 -0700 |
| commit | e859a60add1dd3f844c94c7a782c1a16610bd192 (patch) | |
| tree | bb718c235372164857750051ad3c79835423537d /include/linux/debugobjects.h | |
| parent | 3b44c793603c78037357a1eee5fe16aad0ac6d72 (diff) | |
| download | cachepc-linux-e859a60add1dd3f844c94c7a782c1a16610bd192.tar.gz cachepc-linux-e859a60add1dd3f844c94c7a782c1a16610bd192.zip | |
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, but we must report the link is down.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
