diff options
Diffstat (limited to 'mm/kmemleak.c')
-rw-r--r-- | mm/kmemleak.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
1556 | struct kmemleak_object *object; | 1556 | struct kmemleak_object *object; |
1557 | unsigned long addr; | 1557 | unsigned long addr; |
1558 | 1558 | ||
1559 | addr= simple_strtoul(str, NULL, 0); | 1559 | if (kstrtoul(str, 0, &addr)) |
1560 | return -EINVAL; | ||
1560 | object = find_and_get_object(addr, 0); | 1561 | object = find_and_get_object(addr, 0); |
1561 | if (!object) { | 1562 | if (!object) { |
1562 | pr_info("Unknown object at 0x%08lx\n", addr); | 1563 | pr_info("Unknown object at 0x%08lx\n", addr); |