diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-05-15 16:27:04 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-22 09:05:20 +0200 |
| commit | 1a3cee008fe4120384824e439052170b0bf31b1c (patch) | |
| tree | b5f50e4d31174dbfbf6f30fe3653a5c624ed07de /include/linux | |
| parent | fad0431b7e61b750ef798c1a739382dfae85e231 (diff) | |
platform/x86: hp-wmi: Convert simple_strtoul() to kstrtou32()
[ Upstream commit 5cdc45ed3948042f0d73c6fec5ee9b59e637d0d2 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
