Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: kmemleak: drop wrong comment

Newly created objects have object->count == 0, so the comment is
incorrect. Just drop it.

Link: https://lkml.kernel.org/r/3dfd09bc0e77bb626619184a808774ff07de275c.1746046744.git.luizcap@redhat.com
Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Luiz Capitulino and committed by
Andrew Morton
befbb254 e313ee4e

-2
-2
mm/kmemleak.c
··· 322 322 * sufficient references to it (count >= min_count) 323 323 * - black - ignore, it doesn't contain references (e.g. text section) 324 324 * (min_count == -1). No function defined for this color. 325 - * Newly created objects don't have any color assigned (object->count == -1) 326 - * before the next memory scan when they become white. 327 325 */ 328 326 static bool color_white(const struct kmemleak_object *object) 329 327 {