[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1354880237-23107-1-git-send-email-abhi.c.pawar@gmail.com>
Date: Fri, 7 Dec 2012 17:07:17 +0530
From: Abhijit Pawar <abhi.c.pawar@...il.com>
To: Catalin Marinas <catalin.marinas@....com>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Abhijit Pawar <abhi.c.pawar@...il.com>
Subject: [PATCH 1/4] mm: remove obsolete simple_strtoul
This patch replace the obsolete simple_strtoul with kstrtoul API.
Signed-off-by: Abhijit Pawar <abhi.c.pawar@...il.com>
---
mm/kmemleak.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index a217cc5..b141532 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -1555,8 +1555,11 @@ static int dump_str_object_info(const char *str)
unsigned long flags;
struct kmemleak_object *object;
unsigned long addr;
+ int rc;
- addr= simple_strtoul(str, NULL, 0);
+ rc = kstrtoul(str, 0, &addr);
+ if (rc)
+ 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists