Re: (subset) [PATCH] leds: uleds: return -EFAULT on copy_to_user() failure
From: Lee Jones
Date: Thu Jun 04 2026 - 09:54:09 EST
On Thu, 21 May 2026 20:12:05 +0200, Yousef Alhouseen wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] leds: uleds: return -EFAULT on copy_to_user() failure
commit: ba8f07a62bbe3d481f104fc71c029373fa1ebc7e
--
Lee Jones [李琼斯]