platform/x86: hp-wmi: Convert simple_strtoul() to kstrtou32()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 15 May 2020 13:27:04 +0000 (16:27 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 30 May 2020 14:43:31 +0000 (17:43 +0300)
commit5cdc45ed3948042f0d73c6fec5ee9b59e637d0d2
tree0239d844967b93760b03194131b400ec5f2af125
parent7640cd0b123f999f7845759dd2f78469bfe05b97
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/hp-wmi.c