diff options
| author | Liu Shixin <[email protected]> | 2021-06-03 09:12:04 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2021-06-07 14:12:32 +0000 |
| commit | 8e3ecc68e33ffe3a168f765a8f07377258615709 (patch) | |
| tree | 50c71018c26095c3cb92fb68747b8287a4a2ab6c /lib/dump_stack.c | |
| parent | Linux 5.13-rc5 (diff) | |
| download | kernel-8e3ecc68e33ffe3a168f765a8f07377258615709.tar.gz kernel-8e3ecc68e33ffe3a168f765a8f07377258615709.zip | |
ACPI: LPSS: Use kstrtol() instead of simple_strtol()
The simple_strtol() function is not reliable in some situation, since
it does not check for the range overflow. Use kstrtol() instead.
While at it, modify the code to avoid evaluating _SEM unnecessarily
if uid_str is NULL or kstrtol() fails to convert that string to a
nonzero number.
Signed-off-by: Liu Shixin <[email protected]>
[ rjw: Check uid right after calling kstrtol() ]
[ rjw: Rewrite subject and changelog ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions
