Commit f7b867b5 authored by Shuah Khan's avatar Shuah Khan Committed by Ben Hutchings

x86, microcode: microcode_core.c simple_strtoul cleanup

commit e826abd5 upstream.

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>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 701aa114
...@@ -298,12 +298,11 @@ static ssize_t reload_store(struct sys_device *dev, ...@@ -298,12 +298,11 @@ static ssize_t reload_store(struct sys_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