diff options
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r-- | lib/debugobjects.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 17afb0430161..2f5349c6e81a 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/debugfs.h> | 18 | #include <linux/debugfs.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/hash.h> | 20 | #include <linux/hash.h> |
21 | #include <linux/kmemleak.h> | ||
21 | 22 | ||
22 | #define ODEBUG_HASH_BITS 14 | 23 | #define ODEBUG_HASH_BITS 14 |
23 | #define ODEBUG_HASH_SIZE (1 << ODEBUG_HASH_BITS) | 24 | #define ODEBUG_HASH_SIZE (1 << ODEBUG_HASH_BITS) |
@@ -110,6 +111,7 @@ static void fill_pool(void) | |||
110 | if (!new) | 111 | if (!new) |
111 | return; | 112 | return; |
112 | 113 | ||
114 | kmemleak_ignore(new); | ||
113 | raw_spin_lock_irqsave(&pool_lock, flags); | 115 | raw_spin_lock_irqsave(&pool_lock, flags); |
114 | hlist_add_head(&new->node, &obj_pool); | 116 | hlist_add_head(&new->node, &obj_pool); |
115 | debug_objects_allocated++; | 117 | debug_objects_allocated++; |
@@ -1080,6 +1082,7 @@ static int __init debug_objects_replace_static_objects(void) | |||
1080 | obj = kmem_cache_zalloc(obj_cache, GFP_KERNEL); | 1082 | obj = kmem_cache_zalloc(obj_cache, GFP_KERNEL); |
1081 | if (!obj) | 1083 | if (!obj) |
1082 | goto free; | 1084 | goto free; |
1085 | kmemleak_ignore(obj); | ||
1083 | hlist_add_head(&obj->node, &objects); | 1086 | hlist_add_head(&obj->node, &objects); |
1084 | } | 1087 | } |
1085 | 1088 | ||