X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=kernel%2Ffork.c;h=b0663950634b332526d3bd28074953e1369361c9;hb=73cc56277c42fd13bed3921b07c84ac4b030321a;hp=8011604b3317d23386615cbbebd5456e149b61b3;hpb=37a64bbfe358d7673f80dfb0d0851567638f7e54;p=firefly-linux-kernel-4.4.55.git diff --git a/kernel/fork.c b/kernel/fork.c index 8011604b3317..b0663950634b 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1126,7 +1126,7 @@ static void copy_seccomp(struct task_struct *p) * needed because this new task is not yet running and cannot * be racing exec. */ - BUG_ON(!spin_is_locked(¤t->sighand->siglock)); + assert_spin_locked(¤t->sighand->siglock); /* Ref-count the new filter user, and assign it. */ get_seccomp_filter(current);