summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sx.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-04-04 00:11:22 +0000
committerkmacy <kmacy@FreeBSD.org>2007-04-04 00:11:22 +0000
commit16fabe1e3639f2695094ab0e1b859fa415162ea5 (patch)
tree8b6a093086751a3ebfbaf781cd9cd50c04dff64b /sys/kern/kern_sx.c
parentf66541917bf9a0bc9c64c4a3194e1951ac710f87 (diff)
downloadFreeBSD-src-16fabe1e3639f2695094ab0e1b859fa415162ea5.zip
FreeBSD-src-16fabe1e3639f2695094ab0e1b859fa415162ea5.tar.gz
fix typo
Diffstat (limited to 'sys/kern/kern_sx.c')
-rw-r--r--sys/kern/kern_sx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c
index ad52af0..bbb62d0 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -273,7 +273,7 @@ _sx_sunlock(struct sx *sx, const char *file, int line)
curthread->td_locks--;
WITNESS_UNLOCK(&sx->lock_object, 0, file, line);
LOCK_LOG_LOCK("SUNLOCK", &sx->lock_object, 0, 0, file, line);
- if (SX_SHARERS(x) == 0)
+ if (SX_SHARERS(sx->sx_lock) == 0)
lock_profile_release_lock(&sx->lock_object);
__sx_sunlock(sx, file, line);
}
OpenPOWER on IntegriCloud