diff options
author | Tomas Paukrt <[email protected]> | 2024-09-06 12:52:40 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-09-10 16:20:15 -0700 |
commit | 3f62ea572b3e8e3f10c39a9cb4f04ca9ae5f2952 (patch) | |
tree | 9017f5cc6cf49c721cc55edfdd8e3fb5040d557f /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 48aa361c5db0b380c2b75c24984c0d3e7c1e8c09 (diff) |
net: phy: dp83822: Fix NULL pointer dereference on DP83825 devices
The probe() function is only used for DP83822 and DP83826 PHY,
leaving the private data pointer uninitialized for the DP83825 models
which causes a NULL pointer dereference in the recently introduced/changed
functions dp8382x_config_init() and dp83822_set_wol().
Add the dp8382x_probe() function, so all PHY models will have a valid
private data pointer to fix this issue and also prevent similar issues
in the future.
Fixes: 9ef9ecfa9e9f ("net: phy: dp8382x: keep WOL settings across suspends")
Signed-off-by: Tomas Paukrt <[email protected]>
Reviewed-by: Maxime Chevallier <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions