]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - mm/kmemleak.c
kmemleak: Report previously found leaks even after an error
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 29 Sep 2011 10:50:07 +0000 (11:50 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 2 Dec 2011 16:12:42 +0000 (16:12 +0000)
commit74341703edca6bc68a165a18453071b097828407
tree8cb5c8423849acfb4c89a192548e95dfce49efd7
parentb66930052abf2e41b8a978ae265303917cbe6fa0
kmemleak: Report previously found leaks even after an error

If an error fatal to kmemleak (like memory allocation failure) happens,
kmemleak disables itself but it also removes the access to any
previously found memory leaks. This patch allows read-only access to the
kmemleak debugfs interface but disables any other action.

Reported-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
mm/kmemleak.c