From: Luiz Capitulino Date: Wed, 30 Apr 2025 20:59:46 +0000 (-0400) Subject: mm: kmemleak: drop wrong comment X-Git-Tag: v6.16-rc1~92^2~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=befbb2540aaea90993e150a84e342f04e24f3476;p=thirdparty%2Flinux.git 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 Reviewed-by: Catalin Marinas Acked-by: David Hildenbrand Signed-off-by: Andrew Morton --- diff --git a/mm/kmemleak.c b/mm/kmemleak.c index e6df94c7b0321..06baa34752524 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -322,8 +322,6 @@ static void hex_dump_object(struct seq_file *seq, * sufficient references to it (count >= min_count) * - black - ignore, it doesn't contain references (e.g. text section) * (min_count == -1). No function defined for this color. - * Newly created objects don't have any color assigned (object->count == -1) - * before the next memory scan when they become white. */ static bool color_white(const struct kmemleak_object *object) {