bug on !PageSlab && !PageCompound in ksize

Signed-off-by: Daniel Micay <danielmicay@gmail.com>
Signed-off-by: anupritaisno1 <www.anuprita804@gmail.com>
This commit is contained in:
Daniel Micay 2017-05-03 11:57:35 -04:00 committed by Kreciorek
parent 7617e31b3c
commit 0fc6163cd6

View file

@ -4369,7 +4369,11 @@ 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);
}