Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/sysmon Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/c08d153f17db
branches:  netbsd-9
changeset: 458269:c08d153f17db
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 01 10:57:53 2019 +0000

description:
Pull up following revision(s) (requested by maxv in ticket #128):

        sys/dev/sysmon/sysmon_power.c: revision 1.61

Fix info leak, not all of 'pev' is initialized.

diffstat:

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

diffs (27 lines):

diff -r 5487d9af82fc -r c08d153f17db sys/dev/sysmon/sysmon_power.c
--- a/sys/dev/sysmon/sysmon_power.c     Sun Sep 01 10:56:00 2019 +0000
+++ b/sys/dev/sysmon/sysmon_power.c     Sun Sep 01 10:57:53 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysmon_power.c,v 1.60 2019/03/01 11:06:56 pgoyette Exp $       */
+/*     $NetBSD: sysmon_power.c,v 1.60.4.1 2019/09/01 10:57:53 martin Exp $     */
 
 /*-
  * Copyright (c) 2007 Juan Romero Pardines.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.60 2019/03/01 11:06:56 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.60.4.1 2019/09/01 10:57:53 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -331,6 +331,8 @@
        if (!ped || !ped->dict || !pev_data)
                return EINVAL;
 
+       memset(&pev, 0, sizeof(pev));
+
        mutex_enter(&sysmon_power_event_queue_mtx);
        
        switch (event) {



Home | Main Index | Thread Index | Old Index