diff options
author | 2013-11-20 23:18:17 +0000 | |
---|---|---|
committer | 2013-11-20 23:18:17 +0000 | |
commit | 9979a4edb00b203b5bab3e0586da35f1a63006e8 (patch) | |
tree | f0997c9fe9be551e50ce8befcd2d3948e89a8a5b /sys/kern/subr_hibernate.c | |
parent | +.An -nosplit (diff) | |
download | wireguard-openbsd-9979a4edb00b203b5bab3e0586da35f1a63006e8.tar.xz wireguard-openbsd-9979a4edb00b203b5bab3e0586da35f1a63006e8.zip |
shared semaphore fixes. first, eliminate the sem inside a sem indirection.
it's not needed (mindless holdover from earlier prototype). everything is
simpler and sem_init shared semaphores even work now (confirmed by sthen).
correct the einval checks to not deref a pointer before the null check.
in sem_open, if we created the semaphore, we need to initialize the spinlock.
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions