PM / devfreq: governor: Replace sscanf() with kstrtoul() in set_freq_store()
authorLifeng Zheng <zhenglifeng1@huawei.com>
Mon, 21 Apr 2025 03:00:17 +0000 (11:00 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 14 Jul 2025 11:04:16 +0000 (20:04 +0900)
commit914cc799b28f17d369d5b4db3b941957d18157e8
tree87c99b02b7e8e5609819d66b68ca3611c892fd8b
parent347e9f5043c89695b01e66b3ed111755afcf1911
PM / devfreq: governor: Replace sscanf() with kstrtoul() in set_freq_store()

Replace sscanf() with kstrtoul() in set_freq_store() and check the result
to avoid invalid input.

Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Link: https://lore.kernel.org/lkml/20250421030020.3108405-2-zhenglifeng1@huawei.com/
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/governor_userspace.c