Skip to content
Commit 5cdc45ed authored by Andy Shevchenko's avatar Andy Shevchenko
Browse files

platform/x86: hp-wmi: Convert simple_strtoul() to kstrtou32()



First of all, unsigned long can overflow u32 value on 64-bit machine.
Second, simple_strtoul() doesn't check for overflow in the input.

Convert simple_strtoul() to kstrtou32() to eliminate above issues.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 7640cd0b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment