diff options
| author | Don Lewis <truckman@FreeBSD.org> | 2003-07-13 01:22:21 +0000 |
|---|---|---|
| committer | Don Lewis <truckman@FreeBSD.org> | 2003-07-13 01:22:21 +0000 |
| commit | 857d9c60d0afb185a9f137dbaba6b65da66aef81 (patch) | |
| tree | 717b3d174838551975ecc8e26f0d8c55fe89302c /sys/kern/kern_lock.c | |
| parent | 3c63a8b4fc12fa021ce01685560897528e48864a (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_lock.c')
| -rw-r--r-- | sys/kern/kern_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 475ebaa7ea0a..d765fb66444f 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -547,9 +547,9 @@ lockinit(lkp, prio, wmesg, timo, flags) * XXX cleanup - make sure mtxpool is always initialized before * this is ever called. */ - if (mtx_pool_valid) { + if (mtxpool_lockbuilder != NULL) { mtx_lock(&lock_mtx); - lkp->lk_interlock = mtx_pool_alloc(); + lkp->lk_interlock = mtx_pool_alloc(mtxpool_lockbuilder); mtx_unlock(&lock_mtx); } else { lkp->lk_interlock = &lock_mtx; |
