* [PATCH RESEND 1/4] mm: remove obsolete simple_strtoul
@ 2012-12-10 11:30 Abhijit Pawar
0 siblings, 0 replies; only message in thread
From: Abhijit Pawar @ 2012-12-10 11:30 UTC (permalink / raw)
To: Catalin Marinas, open list:MEMORY MANAGEMENT, open list; +Cc: Abhijit Pawar
This patch replace the obsolete simple_strtoul with kstrtoul API.
Signed-off-by: Abhijit Pawar <abhi.c.pawar@gmail.com>
---
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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-10 11:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 11:30 [PATCH RESEND 1/4] mm: remove obsolete simple_strtoul Abhijit Pawar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).