diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-11-12 23:23:38 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-11-12 23:23:38 +0000 |
commit | e9b95a7ee6d5a20eda85e12eedc5f32db6142aa7 (patch) | |
tree | ed9ee9f232cd62608946e1c15e1270c6e38607b2 /sys | |
parent | ef66e595ff442fd5a1d1c1900ea1194211e5fe7d (diff) | |
download | FreeBSD-src-e9b95a7ee6d5a20eda85e12eedc5f32db6142aa7.zip FreeBSD-src-e9b95a7ee6d5a20eda85e12eedc5f32db6142aa7.tar.gz |
Unbreak witness
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c index 3f5b2af..94e7d88 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); |