diff options
author | Kip Macy <kmacy@FreeBSD.org> | 2006-11-12 23:23:38 +0000 |
---|---|---|
committer | Kip Macy <kmacy@FreeBSD.org> | 2006-11-12 23:23:38 +0000 |
commit | 44a96b46bd4dfd0b7d8c3809ffaed7764a52aed1 (patch) | |
tree | ed9ee9f232cd62608946e1c15e1270c6e38607b2 | |
parent | a0cf75fb609db8b68d48522f28923444b7031941 (diff) |
Notes
-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 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); |