Commit c542b53d authored by Jingoo Han's avatar Jingoo Han Committed by Borislav Petkov

EDAC: Replace strict_strtol() with kstrtol()

The usage of strict_strtol() is not preferred, because strict_strtol()
is obsolete. Thus, kstrtol() should be used.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 3b2f64d0
...@@ -58,8 +58,10 @@ static int edac_set_poll_msec(const char *val, struct kernel_param *kp) ...@@ -58,8 +58,10 @@ static int edac_set_poll_msec(const char *val, struct kernel_param *kp)
if (!val) if (!val)
return -EINVAL; return -EINVAL;
ret = strict_strtol(val, 0, &l); ret = kstrtol(val, 0, &l);
if (ret == -EINVAL || ((int)l != l)) if (ret)
return ret;
if ((int)l != l)
return -EINVAL; return -EINVAL;
*((int *)kp->arg) = l; *((int *)kp->arg) = l;
......
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