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

Commit ed751e68 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds
Browse files

block/blk-sysfs.c: replace strict_strtoul() with kstrtoul()



The usage of strict_strtoul() is not preferred, because strict_strtoul()
is obsolete.  Thus, kstrtoul() should be used.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bb8e0e84
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ queue_var_store(unsigned long *var, const char *page, size_t count)
	int err;
	unsigned long v;

	err = strict_strtoul(page, 10, &v);
	err = kstrtoul(page, 10, &v);
	if (err || v > UINT_MAX)
		return -EINVAL;