From: Abhijit Pawar Date: Tue, 18 Dec 2012 22:23:27 +0000 (-0800) Subject: mm/kmemleak.c: remove obsolete simple_strtoul X-Git-Tag: submit/tizen_common/20140905.094502~3814^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc053733ea44babedb20266300b984d6add8b9e5;p=sdk%2Femulator%2Femulator-kernel.git 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 --- 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);