diff --git a/fs/proc/page.c b/fs/proc/page.c index 3b8b456603318f1ff017056cdeda40129d559ab4..b06c674624e6af3691cbe00d51c7b1a2b5aa7a8a 100644 --- a/fs/proc/page.c +++ b/fs/proc/page.c @@ -40,7 +40,7 @@ static ssize_t kpagecount_read(struct file *file, char __user *buf, ppage = pfn_to_page(pfn); else ppage = NULL; - if (!ppage) + if (!ppage || PageSlab(ppage)) pcount = 0; else pcount = page_mapcount(ppage);