Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -58,8 +58,10 @@ static int edac_set_poll_msec(const char *val, struct kernel_param *kp)
	if (!val)
		return -EINVAL;

	ret = strict_strtol(val, 0, &l);
	if (ret == -EINVAL || ((int)l != l))
	ret = kstrtol(val, 0, &l);
	if (ret)
		return ret;
	if ((int)l != l)
		return -EINVAL;
	*((int *)kp->arg) = l;