From: jsg Date: Sat, 2 May 2015 14:43:06 +0000 (+0000) Subject: add missing splx calls X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=42a1dd2e7b109f024e402feb20079878873ee05e;p=openbsd add missing splx calls ok krw@ --- 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;