Commit e826abd5 authored by Shuah Khan's avatar Shuah Khan Committed by H. Peter Anvin

x86, microcode: microcode_core.c simple_strtoul cleanup

Change reload_for_cpu() in kernel/microcode_core.c to call kstrtoul()
instead of calling obsoleted simple_strtoul().
Signed-off-by: default avatarShuah Khan <shuahkhan@gmail.com>
Reviewed-by: default avatarBorislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/1336324264.2897.9.camel@lorien2Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent d48b97b4
...@@ -299,12 +299,11 @@ static ssize_t reload_store(struct device *dev, ...@@ -299,12 +299,11 @@ static ssize_t reload_store(struct device *dev,
{ {
unsigned long val; unsigned long val;
int cpu = dev->id; int cpu = dev->id;
int ret = 0; ssize_t ret = 0;
char *end;
val = simple_strtoul(buf, &end, 0); ret = kstrtoul(buf, 0, &val);
if (end == buf) if (ret)
return -EINVAL; return ret;
if (val == 1) { if (val == 1) {
get_online_cpus(); get_online_cpus();
......
Markdown is supported
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