diff --git a/mm/slub.c b/mm/slub.c index 30b0bd125..de4ca2280 100755 --- a/mm/slub.c +++ b/mm/slub.c @@ -4369,11 +4369,7 @@ size_t __ksize(const void *object) page = virt_to_head_page(object); if (unlikely(!PageSlab(page))) { -#ifdef CONFIG_BUG_ON_DATA_CORRUPTION - BUG_ON(!PageCompound(page)); -#else WARN_ON(!PageCompound(page)); -#endif return page_size(page); }