diff options
| -rw-r--r-- | arch/powerpc/kernel/process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index d205b52e3850..5acb5a176dbe 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
| @@ -1577,6 +1577,9 @@ int set_thread_tidr(struct task_struct *t) | |||
| 1577 | if (t != current) | 1577 | if (t != current) |
| 1578 | return -EINVAL; | 1578 | return -EINVAL; |
| 1579 | 1579 | ||
| 1580 | if (t->thread.tidr) | ||
| 1581 | return 0; | ||
| 1582 | |||
| 1580 | rc = assign_thread_tidr(); | 1583 | rc = assign_thread_tidr(); |
| 1581 | if (rc < 0) | 1584 | if (rc < 0) |
| 1582 | return rc; | 1585 | return rc; |
