diff options
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r-- | sys/kern/kern_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 2d79db04ed7..f108c7393e9 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_lock.c,v 1.59 2018/02/19 09:18:00 mpi Exp $ */ +/* $OpenBSD: kern_lock.c,v 1.60 2018/03/20 15:45:32 mpi Exp $ */ /* * Copyright (c) 2017 Visa Hankala @@ -79,7 +79,7 @@ _kernel_unlock(void) int _kernel_lock_held(void) { - if (panicstr) + if (panicstr || db_active) return 1; return (__mp_lock_held(&kernel_lock, curcpu())); } |