]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hpfs: Replace simple_strtoul with kstrtoint in hpfs_parse_param
authorSu Hui <suhui@nfschina.com>
Tue, 27 May 2025 09:00:08 +0000 (17:00 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 8 Sep 2025 15:23:34 +0000 (17:23 +0200)
commitfd8a620f195e7966d83c367def68818a2cc71177
tree61e3d0cad1f209dba683887d4cf99c9f831b8a10
parent68a74490629eb606ad77a88dd84515f35525e267
hpfs: Replace simple_strtoul with kstrtoint in hpfs_parse_param

kstrtoint() is better because simple_strtoul() ignores overflow and the
type of 'timeshift' is 'int' rather than 'unsigned long'. Using kstrtoint()
is more concise too.

Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
fs/hpfs/super.c