summaryrefslogtreecommitdiffstats
path: root/mm/list_lru.c
diff options
context:
space:
mode:
authorWang Kai2015-09-09 00:03:41 +0200
committerLinus Torvalds2015-09-09 00:35:28 +0200
commit21cd3a604797c2774676926a95a3d17d4cd5cbb3 (patch)
tree83e3cd390ae01824f4d7aff599cfd292927e2549 /mm/list_lru.c
parentmm/mmap.c: simplify the failure return working flow (diff)
downloadkernel-qcow2-linux-21cd3a604797c2774676926a95a3d17d4cd5cbb3.tar.gz
kernel-qcow2-linux-21cd3a604797c2774676926a95a3d17d4cd5cbb3.tar.xz
kernel-qcow2-linux-21cd3a604797c2774676926a95a3d17d4cd5cbb3.zip
kmemleak: record accurate early log buffer count and report when exceeded
In log_early function, crt_early_log should also count once when 'crt_early_log >= ARRAY_SIZE(early_log)'. Otherwise the reported count from kmemleak_init is one less than 'actual number'. Then, in kmemleak_init, if early_log buffer size equal actual number, kmemleak will init sucessful, so change warning condition to 'crt_early_log > ARRAY_SIZE(early_log)'. Signed-off-by: Wang Kai <morgan.wang@huawei.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/list_lru.c')
0 files changed, 0 insertions, 0 deletions