Please sign in to comment.
kmemleak: Disable early logging when kmemleak is off by default
Commit b669300 (kmemleak: When the early log buffer is exceeded, report the actual number) deferred the disabling of the early logging to kmemleak_init(). However, when CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y, the early logging was no longer disabled causing __init kmemleak functions to be called even after the kernel freed the init memory. This patch disables the early logging during kmemleak_init() if kmemleak is left disabled. Reported-by: Dirk Gouders <email@example.com> Tested-by: Dirk Gouders <firstname.lastname@example.org> Tested-by: Josh Boyer <email@example.com> Signed-off-by: Catalin Marinas <firstname.lastname@example.org>
- Loading branch information...