diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-01-22 09:08:44 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-01-22 09:08:44 +0000 |
commit | 65af9cdb3fef2edfadce25a2b35b44aa118e6d5a (patch) | |
tree | 3471c7b423305e4125fd2d3631d6d9a675e3478f /sys/arch/i386 | |
parent | 9249b2fd93a657e720a6f7d86b480ac49b53a424 (diff) |
Always grab the KERNEL_LOCK() for !IPL_MPSAFE handlers.
Suggested by kettenis@, ok visa@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 5f45491a471..4da7cb4e67f 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.608 2017/12/30 20:46:59 guenther Exp $ */ +/* $OpenBSD: machdep.c,v 1.609 2018/01/22 09:08:43 mpi Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -3938,7 +3938,7 @@ intr_handler(struct intrframe *frame, struct intrhand *ih) if (ih->ih_flags & IPL_MPSAFE) need_lock = 0; else - need_lock = frame->if_ppl < IPL_SCHED; + need_lock = 1; if (need_lock) __mp_lock(&kernel_lock); |