diff options
-rw-r--r-- | mm/kmemleak.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c index e094c4dbdf55..eeece2deace2 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c | |||
@@ -531,8 +531,10 @@ static void delete_object(unsigned long ptr) | |||
531 | write_lock_irqsave(&kmemleak_lock, flags); | 531 | write_lock_irqsave(&kmemleak_lock, flags); |
532 | object = lookup_object(ptr, 0); | 532 | object = lookup_object(ptr, 0); |
533 | if (!object) { | 533 | if (!object) { |
534 | #ifdef DEBUG | ||
534 | kmemleak_warn("Freeing unknown object at 0x%08lx\n", | 535 | kmemleak_warn("Freeing unknown object at 0x%08lx\n", |
535 | ptr); | 536 | ptr); |
537 | #endif | ||
536 | write_unlock_irqrestore(&kmemleak_lock, flags); | 538 | write_unlock_irqrestore(&kmemleak_lock, flags); |
537 | return; | 539 | return; |
538 | } | 540 | } |