|
@@ -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);
|