summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-05-15 16:27:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-22 09:05:20 +0200
commit1a3cee008fe4120384824e439052170b0bf31b1c (patch)
treeb5f50e4d31174dbfbf6f30fe3653a5c624ed07de /include/linux
parentfad0431b7e61b750ef798c1a739382dfae85e231 (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