|
@@ -1775,10 +1775,9 @@ void __init kmemleak_init(void)
|
|
int i;
|
|
int i;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
|
|
- kmemleak_early_log = 0;
|
|
|
|
-
|
|
|
|
#ifdef CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF
|
|
#ifdef CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF
|
|
if (!kmemleak_skip_disable) {
|
|
if (!kmemleak_skip_disable) {
|
|
|
|
+ kmemleak_early_log = 0;
|
|
kmemleak_disable();
|
|
kmemleak_disable();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1796,6 +1795,7 @@ void __init kmemleak_init(void)
|
|
|
|
|
|
/* the kernel is still in UP mode, so disabling the IRQs is enough */
|
|
/* the kernel is still in UP mode, so disabling the IRQs is enough */
|
|
local_irq_save(flags);
|
|
local_irq_save(flags);
|
|
|
|
+ kmemleak_early_log = 0;
|
|
if (kmemleak_error) {
|
|
if (kmemleak_error) {
|
|
local_irq_restore(flags);
|
|
local_irq_restore(flags);
|
|
return;
|
|
return;
|