Replace the literal 0xff in assign_tag() with KASAN_TAG_KERNEL to eliminate the magic number and improve code clarity. Signed-off-by: Igor Putko --- mm/kasan/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/common.c b/mm/kasan/common.c index 5faf73c8f..3e9b6b8f5 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/common.c @@ -188,7 +188,7 @@ static inline u8 assign_tag(struct kmem_cache *cache, const void *object, bool init) { if (IS_ENABLED(CONFIG_KASAN_GENERIC)) - return 0xff; + return KASAN_TAG_KERNEL; /* * If the cache neither has a constructor nor has SLAB_TYPESAFE_BY_RCU -- 2.47.3