diff options
| author | Catalin Marinas <[email protected]> | 2012-01-20 10:42:40 +0000 |
|---|---|---|
| committer | Catalin Marinas <[email protected]> | 2012-01-20 16:57:05 +0000 |
| commit | b370d29ea7565a638ccf85389488364b5abb39fa (patch) | |
| tree | fe6a305ff21a1494ab107ec7e6f5bd05a85a712d /lib/pm-notifier-error-inject.c | |
| parent | b469d4329cf949043f9b93a6644f2c64015ef8cd (diff) | |
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 <[email protected]>
Tested-by: Dirk Gouders <[email protected]>
Tested-by: Josh Boyer <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions