diff options
-rw-r--r-- | mm/slab.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -2814,19 +2814,11 @@ failed: | |||
2814 | */ | 2814 | */ |
2815 | static void kfree_debugcheck(const void *objp) | 2815 | static 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 | ||
2832 | static inline void verify_redzone_free(struct kmem_cache *cache, void *obj) | 2824 | static inline void verify_redzone_free(struct kmem_cache *cache, void *obj) |