diff options
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/uts/common/os/kmem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/kmem.c b/usr/src/uts/common/os/kmem.c index b41ab8c465..5f85f396ec 100644 --- a/usr/src/uts/common/os/kmem.c +++ b/usr/src/uts/common/os/kmem.c @@ -1425,11 +1425,13 @@ static void * kmem_log_enter(kmem_log_header_t *lhp, void *data, size_t size) { void *logspace; - kmem_cpu_log_header_t *clhp = &lhp->lh_cpu[CPU->cpu_seqid]; + kmem_cpu_log_header_t *clhp; if (lhp == NULL || kmem_logging == 0 || panicstr) return (NULL); + clhp = &lhp->lh_cpu[CPU->cpu_seqid]; + mutex_enter(&clhp->clh_lock); clhp->clh_hits++; if (size > clhp->clh_avail) { |
