diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2024-11-18 17:03:51 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-25 03:50:55 +0300 |
commit | e863ff806f72098bccaf8fa89c80d9ad6187c3b0 (patch) | |
tree | b7e67c71a0bf3f53787ef4814264678b33c42a8c /tools/perf/scripts/python/task-analyzer.py | |
parent | 614f4d166eeeb9bd709b0ad29552f691c0f45776 (diff) | |
download | linux-e863ff806f72098bccaf8fa89c80d9ad6187c3b0.tar.xz |
net: usb: lan78xx: Fix refcounting and autosuspend on invalid WoL configuration
Validate Wake-on-LAN (WoL) options in `lan78xx_set_wol` before calling
`usb_autopm_get_interface`. This prevents USB autopm refcounting issues
and ensures the adapter can properly enter autosuspend when invalid WoL
options are provided.
Fixes: eb9ad088f966 ("lan78xx: Check for supported Wake-on-LAN modes")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://patch.msgid.link/20241118140351.2398166-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions