diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/kmemleak.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c index c96f2c8700aa..17096d1b59b2 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c | |||
@@ -235,7 +235,7 @@ struct early_log { | |||
235 | }; | 235 | }; |
236 | 236 | ||
237 | /* early logging buffer and current position */ | 237 | /* early logging buffer and current position */ |
238 | static struct early_log early_log[200]; | 238 | static struct early_log early_log[CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE]; |
239 | static int crt_early_log; | 239 | static int crt_early_log; |
240 | 240 | ||
241 | static void kmemleak_disable(void); | 241 | static void kmemleak_disable(void); |
@@ -696,7 +696,8 @@ static void log_early(int op_type, const void *ptr, size_t size, | |||
696 | struct early_log *log; | 696 | struct early_log *log; |
697 | 697 | ||
698 | if (crt_early_log >= ARRAY_SIZE(early_log)) { | 698 | if (crt_early_log >= ARRAY_SIZE(early_log)) { |
699 | kmemleak_stop("Early log buffer exceeded\n"); | 699 | pr_warning("Early log buffer exceeded\n"); |
700 | kmemleak_disable(); | ||
700 | return; | 701 | return; |
701 | } | 702 | } |
702 | 703 | ||