Skip to content

Commit dc05373

Browse files
abhijit-pawartorvalds
authored andcommitted
mm/kmemleak.c: remove obsolete simple_strtoul
Replace the obsolete simple_strtoul() with kstrtoul(). Signed-off-by: Abhijit Pawar <abhi.c.pawar@gmail.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 79a4dce commit dc05373

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mm/kmemleak.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,8 @@ static int dump_str_object_info(const char *str)
15561556
struct kmemleak_object *object;
15571557
unsigned long addr;
15581558

1559-
addr= simple_strtoul(str, NULL, 0);
1559+
if (kstrtoul(str, 0, &addr))
1560+
return -EINVAL;
15601561
object = find_and_get_object(addr, 0);
15611562
if (!object) {
15621563
pr_info("Unknown object at 0x%08lx\n", addr);

0 commit comments

Comments
 (0)