riscv: Correct the handling of unexpected ebreak in do_trap_break()
[linux-2.6-microblaze.git] / mm / nommu.c
index fed1b6e..99b7ec3 100644 (file)
@@ -108,7 +108,7 @@ unsigned int kobjsize(const void *objp)
         * The ksize() function is only guaranteed to work for pointers
         * returned by kmalloc(). So handle arbitrary pointers here.
         */
-       return PAGE_SIZE << compound_order(page);
+       return page_size(page);
 }
 
 /**