[PATCH RESEND 1/4] mm: remove obsolete simple_strtoul
From: Abhijit Pawar
Date: Mon Dec 10 2012 - 06:31:31 EST
This patch replace the obsolete simple_strtoul with kstrtoul API.
Signed-off-by: Abhijit Pawar <abhi.c.pawar@xxxxxxxxx>
---
mm/kmemleak.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index a217cc5..752a705 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);
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/