Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174872
b: refs/heads/master
c: 84667d4
h: refs/heads/master
v: v3
  • Loading branch information
Jason Wessel committed Dec 11, 2009
1 parent fbf86b9 commit 34cf75a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: a5d09d68335bb8422d5e7050c9f03f99ba6cfebd
refs/heads/master: 84667d4849b0e0a939a76f9f62d45fa3b4d59692
7 changes: 6 additions & 1 deletion trunk/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,17 @@ static struct task_struct *getthread(struct pt_regs *regs, int tid)
*/
if (tid == 0 || tid == -1)
tid = -atomic_read(&kgdb_active) - 2;
if (tid < 0) {
if (tid < -1 && tid > -NR_CPUS - 2) {
if (kgdb_info[-tid - 2].task)
return kgdb_info[-tid - 2].task;
else
return idle_task(-tid - 2);
}
if (tid <= 0) {
printk(KERN_ERR "KGDB: Internal thread select error\n");
dump_stack();
return NULL;
}

/*
* find_task_by_pid_ns() does not take the tasklist lock anymore
Expand Down

0 comments on commit 34cf75a

Please sign in to comment.