aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alloc_tag.c
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2025-07-12 21:48:26 +0000
committerAndrew Morton <[email protected]>2025-07-12 21:48:26 +0000
commitcac3d177c045d1ff88ce4b64859c13de133564ed (patch)
treee0e98021ddb23607f586787799ebf5d048203f3e /lib/alloc_tag.c
parentksm_tests: skip hugepage test when Transparent Hugepages are disabled (diff)
parentRevert "sched/numa: add statistics of numa balance task" (diff)
downloadkernel-cac3d177c045d1ff88ce4b64859c13de133564ed.tar.gz
kernel-cac3d177c045d1ff88ce4b64859c13de133564ed.zip
Merge branch 'mm-hotfixes-stable' into mm-stable to pick up changes which
are required for a merge of the series "mm: folio_pte_batch() improvements".
Diffstat (limited to 'lib/alloc_tag.c')
-rw-r--r--lib/alloc_tag.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/alloc_tag.c b/lib/alloc_tag.c
index 41ccfb035b7b..e9b33848700a 100644
--- a/lib/alloc_tag.c
+++ b/lib/alloc_tag.c
@@ -127,6 +127,9 @@ size_t alloc_tag_top_users(struct codetag_bytes *tags, size_t count, bool can_sl
struct codetag_bytes n;
unsigned int i, nr = 0;
+ if (IS_ERR_OR_NULL(alloc_tag_cttype))
+ return 0;
+
if (can_sleep)
codetag_lock_module_list(alloc_tag_cttype, true);
else if (!codetag_trylock_module_list(alloc_tag_cttype))