diff options
| author | Yousef Alhouseen <alhouseenyousef@gmail.com> | 2026-05-21 20:12:05 +0200 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-06-17 11:29:45 +0100 |
| commit | 61ed78f55a46e12afd4b464c4ba736f55ff33c5e (patch) | |
| tree | f0fc033171314c5974a45f839aeba0f11789696c /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | b819dc7d8fb2896b07e51eba0381d61daf35edd7 (diff) | |
leds: uleds: Return -EFAULT on copy_to_user() failure
uleds_read() copies the current brightness value to userspace but
ignores copy_to_user() failures. It then clears the pending update and
reports a successful full read even when no data was copied.
Return -EFAULT when the copy fails and leave the update pending so a
later read can retry.
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Link: https://patch.msgid.link/20260521181205.15130-1-alhouseenyousef@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
