debugobjects: use kmemleak_not_leak for obj_cache
debug objects are placed in a list obj_pool which is static.
This is placed in __initdata which kmemleak will not scan
unless task stack scan is enabled.
We have taken the explicit choice of disabling task stack
scan by default through the creation of config in the
commit 7f15dd8a750e7cf9ec7346dcb881b5acbef0d5c9.
Thus kmemleak would think that there is no reference to this
and thus we will see this report as leaking memory.
Fix this by using kmemleak_not_leak() when obj_cache is
created to specify explicitly that this is not a leak.
Change-Id: I3c06911b60ce15f3aae336ef7b96c960da2270d9
Signed-off-by:
Kishan Kumar <kishank@codeaurora.org>
Loading
Please register or sign in to comment