Re: [PATCH] edac: edac_device_sysfs: replace simple_strtoul with kstrtoul
From: Borislav Petkov
Date: Tue Jul 07 2026 - 17:48:44 EST
On Tue, Jun 23, 2026 at 12:53:23PM +0100, Jad Keskes wrote:
> simple_strtoul is deprecated. These calls also didn't validate input -
> echoing 'garbage' would just set the value to 0 with no error.
>
> Use kstrtoul instead so bogus data gets -EINVAL back.
>
> Signed-off-by: Jad Keskes <inasj268@xxxxxxxxx>
> ---
> drivers/edac/edac_device_sysfs.c | 29 +++++++++++++++++++++++++----
> 1 file changed, 25 insertions(+), 4 deletions(-)
Sashiko is reporting two pre-existing issues here:
https://sashiko.dev/#/patchset/20260623115323.519298-1-inasj268%40gmail.com
Would you like to take care of them too, in separate patches?
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette