linux/drivers/sh
Hongbo Li c3e878ca7b sh: intc: Replace simple_strtoul() with kstrtoul()
The function simple_strtoul() performs no error checking
in scenarios where the input value overflows the intended
output variable.

We can replace the use of simple_strtoul() with the safer
alternative kstrtoul(). This also allows us to print an
error message in case of failure.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2024-09-26 17:25:29 +02:00
..
clk sh: clk: Fix clk_enable() to return 0 on NULL clk 2023-02-27 10:50:48 +01:00
intc sh: intc: Replace simple_strtoul() with kstrtoul() 2024-09-26 17:25:29 +02:00
maple driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile sh: Remove superhyway bus support 2023-10-25 16:50:11 +02:00
pm_runtime.c drivers: sh: Stop using the legacy clock domain on ARM 2016-05-30 09:41:11 +09:00