Commit 9c83bf68 authored by Lifeng Zheng's avatar Lifeng Zheng Committed by Greg Kroah-Hartman
Browse files

PM / devfreq: governor: Replace sscanf() with kstrtoul() in set_freq_store()



[ Upstream commit 914cc799 ]

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

Signed-off-by: default avatarLifeng Zheng <zhenglifeng1@huawei.com>
Link: https://lore.kernel.org/lkml/20250421030020.3108405-2-zhenglifeng1@huawei.com/


Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 888a453c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment