Module Name: src
Committed By: dholland
Date: Tue May 31 03:51:55 UTC 2016
Modified Files:
src/sys/arch/algor/dev: bonito_mainbus.c
Log Message:
If ALGOR_P6032 is not defined, set sc_bonito to NULL instead of using
random garbage off the stack. PR 51012 from David Binderman.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/algor/dev/bonito_mainbus.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/arch/algor/dev/bonito_mainbus.c
diff -u src/sys/arch/algor/dev/bonito_mainbus.c:1.16 src/sys/arch/algor/dev/bonito_mainbus.c:1.17
--- src/sys/arch/algor/dev/bonito_mainbus.c:1.16 Tue Jun 9 22:47:12 2015
+++ src/sys/arch/algor/dev/bonito_mainbus.c Tue May 31 03:51:55 2016
@@ -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 @@ bonito_mainbus_attach(device_t parent, d
*/
#if defined(ALGOR_P6032)
bc = &p6032_configuration.ac_bonito;
+#else
+ /* I guess... XXX? */
+ bc = NULL;
#endif
sc->sc_bonito = bc;