Commit dc053733 authored by Abhijit Pawar's avatar Abhijit Pawar Committed by Linus Torvalds

mm/kmemleak.c: remove obsolete simple_strtoul

Replace the obsolete simple_strtoul() with kstrtoul().
Signed-off-by: default avatarAbhijit Pawar <abhi.c.pawar@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 79a4dcef
...@@ -1556,7 +1556,8 @@ static int dump_str_object_info(const char *str) ...@@ -1556,7 +1556,8 @@ static int dump_str_object_info(const char *str)
struct kmemleak_object *object; struct kmemleak_object *object;
unsigned long addr; unsigned long addr;
addr= simple_strtoul(str, NULL, 0); if (kstrtoul(str, 0, &addr))
return -EINVAL;
object = find_and_get_object(addr, 0); object = find_and_get_object(addr, 0);
if (!object) { if (!object) {
pr_info("Unknown object at 0x%08lx\n", addr); pr_info("Unknown object at 0x%08lx\n", addr);
......
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