diff options
| author | Heiner Kallweit <[email protected]> | 2019-10-16 19:53:31 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-10-18 16:57:55 +0000 |
| commit | f86854a2e76256ee82025f981a5385480eec17b7 (patch) | |
| tree | 3c6855922a9106c9d3e5f23ebbda287eaa89ff00 /drivers/net/xen-netback/interface.c | |
| parent | net: dsa: sja1105: Switch to hardware operations for PTP (diff) | |
| download | kernel-f86854a2e76256ee82025f981a5385480eec17b7.tar.gz kernel-f86854a2e76256ee82025f981a5385480eec17b7.zip | |
net: phy: avoid NPE if read_page/write_page callbacks are not available
Currently there's a bug in the module subsystem [0] preventing load of
the PHY driver module on certain systems (as one symptom).
This results in a NPE on such systems for the following reason:
Instead of the correct PHY driver the genphy driver is loaded that
doesn't implement the read_page/write_page callbacks. Every call to
phy_read_paged() et al will result in a NPE therefore.
In parallel to fixing the root cause we should make sure that this one
and maybe similar issues in other subsystems don't result in a NPE
in phylib. So let's check for the callbacks before using them and warn
once if they are not available.
[0] https://marc.info/?t=157072642100001&r=1&w=2
Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
