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:
parent
7617e31b3c
commit
0fc6163cd6
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue