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)
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

diff --cc mm/kmemleak.c
Simple merge