diff options
author | 2011-07-05 03:58:22 +0000 | |
---|---|---|
committer | 2011-07-05 03:58:22 +0000 | |
commit | 0946d6782318df5a413151e2906c1611e5882438 (patch) | |
tree | 32d276f57b00b068086734ff6f86677e889ef6c1 /sys/kern/kern_rwlock.c | |
parent | i forgot to set the sector_count when translating WRITE SAME 16 (diff) | |
download | wireguard-openbsd-0946d6782318df5a413151e2906c1611e5882438.tar.xz wireguard-openbsd-0946d6782318df5a413151e2906c1611e5882438.zip |
Replace expanded version of RW_PROC() with the macro.
ok oga@
Diffstat (limited to 'sys/kern/kern_rwlock.c')
-rw-r--r-- | sys/kern/kern_rwlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c index 8d33dc2724c..7efb00e1d2c 100644 --- a/sys/kern/kern_rwlock.c +++ b/sys/kern/kern_rwlock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_rwlock.c,v 1.16 2010/09/24 13:21:30 matthew Exp $ */ +/* $OpenBSD: kern_rwlock.c,v 1.17 2011/07/05 03:58:22 weingart Exp $ */ /* * Copyright (c) 2002, 2003 Artur Grabowski <art@openbsd.org> @@ -265,7 +265,7 @@ rw_assert_wrlock(struct rwlock *rwl) if (!(rwl->rwl_owner & RWLOCK_WRLOCK)) panic("%s: lock not held", rwl->rwl_name); - if (RWLOCK_OWNER(rwl) != (struct proc *)((long)curproc & ~RWLOCK_MASK)) + if (RWLOCK_OWNER(rwl) != (struct proc *)RW_PROC(curproc)) panic("%s: lock not held by this process", rwl->rwl_name); } |