summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2013-11-20 23:18:17 +0000
committertedu <tedu@openbsd.org>2013-11-20 23:18:17 +0000
commit9979a4edb00b203b5bab3e0586da35f1a63006e8 (patch)
treef0997c9fe9be551e50ce8befcd2d3948e89a8a5b /sys/kern/subr_hibernate.c
parent+.An -nosplit (diff)
downloadwireguard-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