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

platform/x86: intel_pmc_core: Respect error code of kstrtou32_from_user()



kstrtou32_from_user() may return different error codes on certain
circumstances. Respect all possible values.

While here, move it out of the lock: there is no data access that lock guards.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent e883cafd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment