mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
mm/kmemleak.c: remove obsolete simple_strtoul
Replace the obsolete simple_strtoul() with kstrtoul(). Signed-off-by: Abhijit Pawar <abhi.c.pawar@gmail.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
79a4dcefd3
commit
dc053733ea
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue