Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/hpc spl leak, found by Mootja



details:   https://anonhg.NetBSD.org/src/rev/ce2cef75b948
branches:  trunk
changeset: 824988:ce2cef75b948
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Jun 25 12:21:00 2017 +0000

description:
spl leak, found by Mootja

diffstat:

 sys/dev/hpc/hpcapm.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 1a4657cd4bf7 -r ce2cef75b948 sys/dev/hpc/hpcapm.c
--- a/sys/dev/hpc/hpcapm.c      Sun Jun 25 12:15:04 2017 +0000
+++ b/sys/dev/hpc/hpcapm.c      Sun Jun 25 12:21:00 2017 +0000
@@ -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 @@
                                sc->power_state = APM_SYS_READY;
                        } else
                                *event_info = 0;
+                       splx(s);
+
                        return (0);
                }
        }



Home | Main Index | Thread Index | Old Index