projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79a4dce
)
mm/kmemleak.c: remove obsolete simple_strtoul
author
Abhijit Pawar
<
[email protected]
>
Tue, 18 Dec 2012 22:23:27 +0000
(14:23 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 18 Dec 2012 23:02:15 +0000
(15:02 -0800)
Replace the obsolete simple_strtoul() with kstrtoul().
Signed-off-by: Abhijit Pawar <
[email protected]
>
Cc: Catalin Marinas <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/kmemleak.c
patch
|
blob
|
history
diff --git
a/mm/kmemleak.c
b/mm/kmemleak.c
index a217cc54406065f6cef571bb35f7b19a22e295c8..752a705c77c2ec6c5f08cfb5ac4bf531895b2c3e 100644
(file)
--- 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);