aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slab.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mm/slab.c b/mm/slab.c
index c6100628a6ef..aea1cd25314b 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2814,19 +2814,11 @@ failed:
2814 */ 2814 */
2815static void kfree_debugcheck(const void *objp) 2815static void kfree_debugcheck(const void *objp)
2816{ 2816{
2817 struct page *page;
2818
2819 if (!virt_addr_valid(objp)) { 2817 if (!virt_addr_valid(objp)) {
2820 printk(KERN_ERR "kfree_debugcheck: out of range ptr %lxh.\n", 2818 printk(KERN_ERR "kfree_debugcheck: out of range ptr %lxh.\n",
2821 (unsigned long)objp); 2819 (unsigned long)objp);
2822 BUG(); 2820 BUG();
2823 } 2821 }
2824 page = virt_to_page(objp);
2825 if (!PageSlab(page)) {
2826 printk(KERN_ERR "kfree_debugcheck: bad ptr %lxh.\n",
2827 (unsigned long)objp);
2828 BUG();
2829 }
2830} 2822}
2831 2823
2832static inline void verify_redzone_free(struct kmem_cache *cache, void *obj) 2824static inline void verify_redzone_free(struct kmem_cache *cache, void *obj)