Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32220
b: refs/heads/master
c: 55794a4
h: refs/heads/master
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed Jul 10, 2006
1 parent 081840d commit 0bc6e5f
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5fca80e8b4bf5d69b900115b14342133ce81d79e
refs/heads/master: 55794a412fdf9af1744800e5020a4ec6b21e3cdc
5 changes: 3 additions & 2 deletions trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -2551,7 +2551,7 @@ static inline int in_range(const void *start, const void *addr, const void *end)

static void
print_freed_lock_bug(struct task_struct *curr, const void *mem_from,
const void *mem_to)
const void *mem_to, struct held_lock *hlock)
{
if (!debug_locks_off())
return;
Expand All @@ -2563,6 +2563,7 @@ print_freed_lock_bug(struct task_struct *curr, const void *mem_from,
printk( "-------------------------\n");
printk("%s/%d is freeing memory %p-%p, with a lock still held there!\n",
curr->comm, curr->pid, mem_from, mem_to-1);
print_lock(hlock);
lockdep_print_held_locks(curr);

printk("\nstack backtrace:\n");
Expand Down Expand Up @@ -2596,7 +2597,7 @@ void debug_check_no_locks_freed(const void *mem_from, unsigned long mem_len)
!in_range(mem_from, lock_to, mem_to))
continue;

print_freed_lock_bug(curr, mem_from, mem_to);
print_freed_lock_bug(curr, mem_from, mem_to, hlock);
break;
}
local_irq_restore(flags);
Expand Down

0 comments on commit 0bc6e5f

Please sign in to comment.