diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index e06d0c10a24e..a3baf92462bd 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -579,7 +579,7 @@ static void exit_mm(struct task_struct * tsk) | |||
579 | down_read(&mm->mmap_sem); | 579 | down_read(&mm->mmap_sem); |
580 | } | 580 | } |
581 | atomic_inc(&mm->mm_count); | 581 | atomic_inc(&mm->mm_count); |
582 | if (mm != tsk->active_mm) BUG(); | 582 | BUG_ON(mm != tsk->active_mm); |
583 | /* more a memory barrier than a real lock */ | 583 | /* more a memory barrier than a real lock */ |
584 | task_lock(tsk); | 584 | task_lock(tsk); |
585 | tsk->mm = NULL; | 585 | tsk->mm = NULL; |
@@ -1530,8 +1530,7 @@ check_continued: | |||
1530 | if (options & __WNOTHREAD) | 1530 | if (options & __WNOTHREAD) |
1531 | break; | 1531 | break; |
1532 | tsk = next_thread(tsk); | 1532 | tsk = next_thread(tsk); |
1533 | if (tsk->signal != current->signal) | 1533 | BUG_ON(tsk->signal != current->signal); |
1534 | BUG(); | ||
1535 | } while (tsk != current); | 1534 | } while (tsk != current); |
1536 | 1535 | ||
1537 | read_unlock(&tasklist_lock); | 1536 | read_unlock(&tasklist_lock); |