Skip to content

Commit

Permalink
mm/kmemleak.c: remove obsolete simple_strtoul
Browse files Browse the repository at this point in the history
Replace the obsolete simple_strtoul() with kstrtoul().

Signed-off-by: Abhijit Pawar <[email protected]>
Cc: Catalin Marinas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
abhijit-pawar authored and torvalds committed Dec 18, 2012
1 parent 79a4dce commit dc05373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc05373

Please sign in to comment.