diff --git a/mm/slab_common.c b/mm/slab_common.c index 05135ebb6..01389468e 100755 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -36,7 +36,7 @@ enum slab_state slab_state; LIST_HEAD(slab_caches); DEFINE_MUTEX(slab_mutex); -struct kmem_cache *kmem_cache; +struct kmem_cache *kmem_cache __ro_after_init; #ifdef CONFIG_HARDENED_USERCOPY bool usercopy_fallback __ro_after_init =