diff --git a/mm/memory.c b/mm/memory.c index 222da66f16b44852bc130bb477d3f95f141e3b2a..a9897dcd530fb3abf812927a0a1090b7d59e9fe0 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1452,7 +1452,7 @@ static int insert_page(struct vm_area_struct *vma, unsigned long addr, spinlock_t *ptl; retval = -EINVAL; - if (PageAnon(page)) + if (PageAnon(page) || PageSlab(page)) goto out; retval = -ENOMEM; flush_dcache_page(page);