]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm: kmemleak: drop wrong comment
authorLuiz Capitulino <luizcap@redhat.com>
Wed, 30 Apr 2025 20:59:46 +0000 (16:59 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 13 May 2025 06:50:47 +0000 (23:50 -0700)
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>
mm/kmemleak.c

index e6df94c7b032106d409e6282b24e7c67d01940cf..06baa347525240b33c98e0e5af6cb2e56e0473ca 100644 (file)
@@ -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)
 {