diff options
| author | Andrew Lunn <[email protected]> | 2018-10-25 12:42:38 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-10-25 23:19:09 +0000 |
| commit | f802912d42525eddb2e504b0b852539f46c8fd9d (patch) | |
| tree | d4989bda0e19ae9baba10cb62c2198eb3489264e /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | r8169: fix broken Wake-on-LAN from S5 (poweroff) (diff) | |
| download | kernel-f802912d42525eddb2e504b0b852539f46c8fd9d.tar.gz kernel-f802912d42525eddb2e504b0b852539f46c8fd9d.zip | |
net: phy: genphy_10g_driver: Avoid NULL pointer dereference
This driver got missed during the recent change of .features from a
u32 to a pointer to a Linux bitmap. Change the initialisation from 0
to PHY_10GBIT_FEATURES so removing the danger of a NULL pointer
dereference.
Fixes: 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode bitmap")
Reported-by: Jose Abreu <[email protected]>
Signed-off-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
