From 2080fd3f3a963a8a3802119c102f56ec840204e5 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 28 May 2017 18:51:30 -0400 Subject: [PATCH] mark kmem_cache as __ro_after_init Signed-off-by: anupritaisno1 --- mm/slab_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =