Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/algor/dev If ALGOR_P6032 is not defined, set sc_bon...



details:   https://anonhg.NetBSD.org/src/rev/d431dff4c7b1
branches:  trunk
changeset: 345517:d431dff4c7b1
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue May 31 03:51:55 2016 +0000

description:
If ALGOR_P6032 is not defined, set sc_bonito to NULL instead of using
random garbage off the stack. PR 51012 from David Binderman.

diffstat:

 sys/arch/algor/dev/bonito_mainbus.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 6072021e1b0c -r d431dff4c7b1 sys/arch/algor/dev/bonito_mainbus.c
--- a/sys/arch/algor/dev/bonito_mainbus.c       Tue May 31 03:50:30 2016 +0000
+++ b/sys/arch/algor/dev/bonito_mainbus.c       Tue May 31 03:51:55 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bonito_mainbus.c,v 1.16 2015/06/09 22:47:12 matt Exp $ */
+/*     $NetBSD: bonito_mainbus.c,v 1.17 2016/05/31 03:51:55 dholland Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bonito_mainbus.c,v 1.16 2015/06/09 22:47:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bonito_mainbus.c,v 1.17 2016/05/31 03:51:55 dholland Exp $");
 
 #include "opt_algor_p6032.h"
 
@@ -85,6 +85,9 @@
         */
 #if defined(ALGOR_P6032)
        bc = &p6032_configuration.ac_bonito;
+#else
+       /* I guess... XXX? */
+       bc = NULL;
 #endif
        sc->sc_bonito = bc;
 



Home | Main Index | Thread Index | Old Index