mm: Make mem_dump_obj() handle NULL and zero-sized pointers
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 8 Dec 2020 23:26:22 +0000 (15:26 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 22 Jan 2021 23:23:57 +0000 (15:23 -0800)
commitb70fa3b12fc8d2b870d1ac7fd44da89271eb8705
treef68cacbddfff2a6cc7d48b02f1fb06b4576b70db
parent8e7f37f2aaa56b723a24f6872817cf9c6410b613
mm: Make mem_dump_obj() handle NULL and zero-sized pointers

This commit makes mem_dump_obj() call out NULL and zero-sized pointers
specially instead of classifying them as non-paged memory.

Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-mm@kvack.org>
Reported-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
mm/util.c