diff options
| author | 2026-10-10 23:32:48 +0200 | |
|---|---|---|
| committer | 2026-10-15 18:05:50 -0700 | |
| commit | 9272297df14124fe603c81e40b52ff0c5dd88652 (patch) | |
| tree | 08460da4181fcd3335d24280e4b9cd3de266e5ca /scripts/Makefile.thinlto | |
| parent | net/mlx5e: Rename state_destroy to rx_mode_active in flow steering (diff) | |
net: usb: lan78xx: reject invalid EEPROM write requests
The runtime PM handling removed the -EINVAL return for invalid
EEPROM/OTP write requests. These requests now return zero from a
successful usb_autopm_get_interface() call, even though no data is
written.
Set ret to -EINVAL for invalid requests while preserving the runtime
PM reference release.
Fixes: 8a7ffeb795f8 ("lan78xx: Fix for eeprom read/write when device auto suspend")
Signed-off-by: Stefano Munari <stefanomunari.sm@gmail.com>
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Tested-by: Nicolai Buchwitz <nb@tipi-net.de> # Raspberry Pi 3B+ (LAN7515)
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20261010213248.15938-1-stefanomunari.sm@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
