You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] More BUG_ON conversion
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: James Bottomley <James.Bottomley@steeleye.com> Acked-by: "Salyzyn, Mark" <mark_salyzyn@adaptec.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
78ce89c92b
commit
125e18745f
+2
-3
@@ -579,7 +579,7 @@ static void exit_mm(struct task_struct * tsk)
|
||||
down_read(&mm->mmap_sem);
|
||||
}
|
||||
atomic_inc(&mm->mm_count);
|
||||
if (mm != tsk->active_mm) BUG();
|
||||
BUG_ON(mm != tsk->active_mm);
|
||||
/* more a memory barrier than a real lock */
|
||||
task_lock(tsk);
|
||||
tsk->mm = NULL;
|
||||
@@ -1530,8 +1530,7 @@ check_continued:
|
||||
if (options & __WNOTHREAD)
|
||||
break;
|
||||
tsk = next_thread(tsk);
|
||||
if (tsk->signal != current->signal)
|
||||
BUG();
|
||||
BUG_ON(tsk->signal != current->signal);
|
||||
} while (tsk != current);
|
||||
|
||||
read_unlock(&tasklist_lock);
|
||||
|
||||
Reference in New Issue
Block a user