Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157423
b: refs/heads/master
c: 0580a18
h: refs/heads/master
i:
  157421: 76ee6b6
  157419: 591bd82
  157415: 8bc9db7
  157407: 264d8e7
v: v3
  • Loading branch information
Luis R. Rodriguez authored and Catalin Marinas committed Sep 8, 2009
1 parent f7dba0b commit 64938e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: a1084c8779f5efa771c6896a0a4184900b4ab736
refs/heads/master: 0580a1819c584eb8b98f8701157667037e11153a
7 changes: 3 additions & 4 deletions trunk/mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ static struct kmemleak_object *create_object(unsigned long ptr, size_t size,
object->tree_node.last = ptr + size - 1;

write_lock_irqsave(&kmemleak_lock, flags);

min_addr = min(min_addr, ptr);
max_addr = max(max_addr, ptr + size);
node = prio_tree_insert(&object_tree_root, &object->tree_node);
Expand All @@ -565,14 +566,12 @@ static struct kmemleak_object *create_object(unsigned long ptr, size_t size,
* random memory blocks.
*/
if (node != &object->tree_node) {
unsigned long flags;

kmemleak_stop("Cannot insert 0x%lx into the object search tree "
"(already existing)\n", ptr);
object = lookup_object(ptr, 1);
spin_lock_irqsave(&object->lock, flags);
spin_lock(&object->lock);
dump_object_info(object);
spin_unlock_irqrestore(&object->lock, flags);
spin_unlock(&object->lock);

goto out;
}
Expand Down

0 comments on commit 64938e8

Please sign in to comment.