Module Name: src
Committed By: maxv
Date: Sun Jun 25 12:21:00 UTC 2017
Modified Files:
src/sys/dev/hpc: hpcapm.c
Log Message:
spl leak, found by Mootja
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/hpc/hpcapm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/hpc/hpcapm.c
diff -u src/sys/dev/hpc/hpcapm.c:1.20 src/sys/dev/hpc/hpcapm.c:1.21
--- src/sys/dev/hpc/hpcapm.c:1.20 Sat Nov 9 21:31:56 2013
+++ src/sys/dev/hpc/hpcapm.c Sun Jun 25 12:21:00 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: hpcapm.c,v 1.20 2013/11/09 21:31:56 christos Exp $ */
+/* $NetBSD: hpcapm.c,v 1.21 2017/06/25 12:21:00 maxv Exp $ */
/*
* Copyright (c) 2000 Takemura Shin
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.20 2013/11/09 21:31:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.21 2017/06/25 12:21:00 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_hpcapm.h"
@@ -415,6 +415,8 @@ hpcapm_get_event(void *scx, u_int *event
sc->power_state = APM_SYS_READY;
} else
*event_info = 0;
+ splx(s);
+
return (0);
}
}