diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 7d09b6c8f6f..90e253a4a56 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -14,6 +14,7 @@ #include #include #include +#include #define ODEBUG_HASH_BITS 14 #define ODEBUG_HASH_SIZE (1 << ODEBUG_HASH_BITS) @@ -97,6 +98,7 @@ static void fill_pool(void) if (!new) return; + kmemleak_not_leak(new); raw_spin_lock_irqsave(&pool_lock, flags); hlist_add_head(&new->node, &obj_pool); obj_pool_free++;