diff options
author | Kaushlendra Kumar <kaushlendra.kumar@intel.com> | 2025-09-06 14:53:16 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-09-10 13:20:10 +0300 |
commit | 5590db443a40a35d7fba2db12701346be621a19e (patch) | |
tree | 91fe0a3b0aa81d24eb16d836daa65a9ccb0a04c3 /drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | |
parent | ae1bdd23b99f64335c69d546bff99ca39b894c18 (diff) | |
download | linux-5590db443a40a35d7fba2db12701346be621a19e.tar.xz |
cpufreq: conservative: Replace sscanf() with kstrtouint()
Replace sscanf() with kstrtouint() in all sysfs store functions to improve
input validation and security. The kstrtouint() function provides better
error detection, overflow protection, and consistent error handling
compared to sscanf().
This maintains existing functionality while improving input validation
robustness and following kernel coding best practices for string parsing.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/20250906115316.3010384-1-kaushlendra.kumar@intel.com
[ rjw: Dropped duplicate paragraph from the changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c')
0 files changed, 0 insertions, 0 deletions