diff options
author | 2015-05-02 14:43:06 +0000 | |
---|---|---|
committer | 2015-05-02 14:43:06 +0000 | |
commit | 42a1dd2e7b109f024e402feb20079878873ee05e (patch) | |
tree | d27806018020139aeee5443b22d8ef122c8b91b5 | |
parent | add missing splx calls (diff) | |
download | wireguard-openbsd-42a1dd2e7b109f024e402feb20079878873ee05e.tar.xz wireguard-openbsd-42a1dd2e7b109f024e402feb20079878873ee05e.zip |
add missing splx calls
ok krw@
-rw-r--r-- | sys/compat/linux/linux_misc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 357d8de61e7..f960b778f97 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.92 2014/11/16 12:30:59 deraadt Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.93 2015/05/02 14:43:06 jsg Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -957,12 +957,16 @@ linux_sys_alarm(p, v, retval) /* * Return how many seconds were left (rounded up) */ - if (itp->it_value.tv_sec > LINUX_TIME_MAX) + if (itp->it_value.tv_sec > LINUX_TIME_MAX) { + splx(s); return EOVERFLOW; + } seconds_due = (linux_time_t)itp->it_value.tv_sec; if (itp->it_value.tv_usec) { - if (seconds_due == LINUX_TIME_MAX) + if (seconds_due == LINUX_TIME_MAX) { + splx(s); return EOVERFLOW; + } seconds_due++; } retval[0] = seconds_due; |