Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74398
b: refs/heads/master
c: 80cbd91
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox authored and Linus Torvalds committed Nov 30, 2007
1 parent 14f1a77 commit 1ec82f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e1cca7e8d484390169777b423a7fe46c7021fec1
refs/heads/master: 80cbd911ca25535f6bb66bbcbb98950ec328eb40
4 changes: 2 additions & 2 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2881,6 +2881,8 @@ static void *cache_free_debugcheck(struct kmem_cache *cachep, void *objp,
unsigned int objnr;
struct slab *slabp;

BUG_ON(virt_to_cache(objp) != cachep);

objp -= obj_offset(cachep);
kfree_debugcheck(objp);
page = virt_to_head_page(objp);
Expand Down Expand Up @@ -3759,8 +3761,6 @@ void kmem_cache_free(struct kmem_cache *cachep, void *objp)
{
unsigned long flags;

BUG_ON(virt_to_cache(objp) != cachep);

local_irq_save(flags);
debug_check_no_locks_freed(objp, obj_size(cachep));
__cache_free(cachep, objp);
Expand Down

0 comments on commit 1ec82f4

Please sign in to comment.