Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47393
b: refs/heads/master
c: 6e40e73
h: refs/heads/master
i:
  47391: 83692d7
v: v3
  • Loading branch information
Pekka Enberg authored and Linus Torvalds committed Feb 11, 2007
1 parent f54707f commit 886daf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66efc5a7e3061c3597ac43a8bb1026488d57e66b
refs/heads/master: 6e40e73097a5e4ad1b9f92fa21757343fdd6a682
8 changes: 0 additions & 8 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2814,19 +2814,11 @@ static int cache_grow(struct kmem_cache *cachep,
*/
static void kfree_debugcheck(const void *objp)
{
struct page *page;

if (!virt_addr_valid(objp)) {
printk(KERN_ERR "kfree_debugcheck: out of range ptr %lxh.\n",
(unsigned long)objp);
BUG();
}
page = virt_to_page(objp);
if (!PageSlab(page)) {
printk(KERN_ERR "kfree_debugcheck: bad ptr %lxh.\n",
(unsigned long)objp);
BUG();
}
}

static inline void verify_redzone_free(struct kmem_cache *cache, void *obj)
Expand Down

0 comments on commit 886daf7

Please sign in to comment.