[PATCH] kmemleak: Report if we need to tune KMEMLEAK_EARLY_LOG_SIZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



...rather than just mysteriously disabling it.

Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
---
 mm/kmemleak.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index 9a085d525bbc..156c0c69cc5c 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -863,6 +863,7 @@ static void __init log_early(int op_type, const void *ptr, size_t size,
 
 	if (crt_early_log >= ARRAY_SIZE(early_log)) {
 		crt_early_log++;
+		pr_warn("Too many early logs\n");
 		kmemleak_disable();
 		return;
 	}
-- 
2.13.6




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux