summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorCatalin Marinas2011-04-27 17:44:26 +0200
committerCatalin Marinas2011-05-19 18:35:28 +0200
commit52c3ce4ec5601ee383a14f1485f6bac7b278896e (patch)
treec987bc17100f9b5e5bdaa3b2b83612fe65bbb39a /lib/Kconfig.debug
parentLinux 2.6.39-rc5 (diff)
downloadkernel-qcow2-linux-52c3ce4ec5601ee383a14f1485f6bac7b278896e.tar.gz
kernel-qcow2-linux-52c3ce4ec5601ee383a14f1485f6bac7b278896e.tar.xz
kernel-qcow2-linux-52c3ce4ec5601ee383a14f1485f6bac7b278896e.zip
kmemleak: Do not return a pointer to an object that kmemleak did not get
The kmemleak_seq_next() function tries to get an object (and increment its use count) before returning it. If it could not get the last object during list traversal (because it may have been freed), the function should return NULL rather than a pointer to such object that it did not get. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Reported-by: Phil Carmody <ext-phil.2.carmody@nokia.com> Acked-by: Phil Carmody <ext-phil.2.carmody@nokia.com> Cc: <stable@kernel.org>
Diffstat (limited to 'lib/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions