]> www.infradead.org Git - users/jedix/linux-maple.git/commit
misc: tsl2550: replace simple_strtoul to kstrtoul
authorHongbo Li <lihongbo22@huawei.com>
Fri, 30 Aug 2024 08:03:11 +0000 (16:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 10:34:31 +0000 (12:34 +0200)
commit072e18d63b91710b6469411030fcd6e7bc036bbc
treed64c10a7cdc1959588f1df4ee508f029153dcfac
parente807c406a6b405518f420426665e2455f83ad8fc
misc: tsl2550: replace simple_strtoul to 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 the simple_strtoul with the safer
alternatives kstrtoul.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://lore.kernel.org/r/20240830080311.3545307-1-lihongbo22@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/tsl2550.c