diff options
| author | Kip Macy <kmacy@FreeBSD.org> | 2007-04-04 00:11:22 +0000 |
|---|---|---|
| committer | Kip Macy <kmacy@FreeBSD.org> | 2007-04-04 00:11:22 +0000 |
| commit | 59a31e6acf85c90f3e55a7d3c947a4aa3e012956 (patch) | |
| tree | 8b6a093086751a3ebfbaf781cd9cd50c04dff64b | |
| parent | e2bc106690f7ebbbb6862cb4a6620951dd8c07db (diff) | |
Notes
| -rw-r--r-- | sys/kern/kern_sx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c index ad52af0bd862..bbb62d063cd2 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); } |
