From dc053733ea44babedb20266300b984d6add8b9e5 Mon Sep 17 00:00:00 2001 From: Abhijit Pawar Date: Tue, 18 Dec 2012 14:23:27 -0800 Subject: [PATCH] mm/kmemleak.c: remove obsolete simple_strtoul Replace the obsolete simple_strtoul() with kstrtoul(). Signed-off-by: Abhijit Pawar Cc: Catalin Marinas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/kmemleak.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index a217cc544060..752a705c77c2 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -1556,7 +1556,8 @@ static int dump_str_object_info(const char *str) struct kmemleak_object *object; unsigned long addr; - addr= simple_strtoul(str, NULL, 0); + if (kstrtoul(str, 0, &addr)) + return -EINVAL; object = find_and_get_object(addr, 0); if (!object) { pr_info("Unknown object at 0x%08lx\n", addr);