From 44a96b46bd4dfd0b7d8c3809ffaed7764a52aed1 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Sun, 12 Nov 2006 23:23:38 +0000 Subject: Unbreak witness --- sys/kern/subr_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c index 3f5b2af2e1df..94e7d8819a33 100644 --- a/sys/kern/subr_lock.c +++ b/sys/kern/subr_lock.c @@ -210,7 +210,7 @@ lock_init(struct lock_object *lock, struct lock_class *class, const char *name, /* Initialize the lock object. */ lock->lo_name = name; - lock->lo_type = type != NULL ? type : class->lc_name; + lock->lo_type = type != NULL ? type : name; lock->lo_flags |= flags | LO_INITIALIZED; LOCK_LOG_INIT(lock, 0); WITNESS_INIT(lock); -- cgit v1.2.3