summaryrefslogtreecommitdiff
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorBosko Milekic <bmilekic@FreeBSD.org>2001-08-24 22:53:45 +0000
committerBosko Milekic <bmilekic@FreeBSD.org>2001-08-24 22:53:45 +0000
commitab07087e16e719fdab299153899ca9259e22b615 (patch)
treec9ef82b09c232e847f7edec15966dcb9a0ea5eeb /sys/kern/kern_mutex.c
parent98b17b9518b376d3c3b8e2a126f5bae7c9647496 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 6baf62a8dc57..b34d049c591e 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -611,8 +611,10 @@ mtx_validate(struct mtx *m)
* we can re-enable the kernacc() checks.
*/
#ifndef __alpha__
- if (!kernacc((caddr_t)m, sizeof(m), VM_PROT_READ | VM_PROT_WRITE))
- panic("Can't read and write to mutex %p", m);
+ if (!cold)
+ if (!kernacc((caddr_t)m, sizeof(m),
+ VM_PROT_READ | VM_PROT_WRITE))
+ panic("Can't read and write to mutex %p", m);
#endif
}
#endif