From: Catalin Marinas Date: Fri, 20 Jan 2012 10:42:40 +0000 (+0000) Subject: kmemleak: Disable early logging when kmemleak is off by default X-Git-Tag: v3.3-rc3~28^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b370d29ea7565a638ccf85389488364b5abb39fa;p=pandora-kernel.git kmemleak: Disable early logging when kmemleak is off by default Commit b6693005 (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 Tested-by: Dirk Gouders Tested-by: Josh Boyer Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed