Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev Properly zero out struct fb_devconfig...
details: https://anonhg.NetBSD.org/src/rev/978138079976
branches: trunk
changeset: 344041:978138079976
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Mar 11 13:16:55 2016 +0000
description:
Properly zero out struct fb_devconfig, including rasops_info.
Fix panic after wsconscfg(8) from serial console, caused by
a junk function pointer.
diffstat:
sys/arch/dreamcast/dev/pvr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 98836bee98d1 -r 978138079976 sys/arch/dreamcast/dev/pvr.c
--- a/sys/arch/dreamcast/dev/pvr.c Fri Mar 11 13:15:02 2016 +0000
+++ b/sys/arch/dreamcast/dev/pvr.c Fri Mar 11 13:16:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pvr.c,v 1.35 2014/03/26 16:08:45 christos Exp $ */
+/* $NetBSD: pvr.c,v 1.36 2016/03/11 13:16:55 tsutsui Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.35 2014/03/26 16:08:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.36 2016/03/11 13:16:55 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -281,7 +281,7 @@
sc->sc_nscreens = 1;
} else {
sc->sc_dc = malloc(sizeof(struct fb_devconfig), M_DEVBUF,
- M_WAITOK);
+ M_WAITOK | M_ZERO);
pvr_getdevconfig(sc->sc_dc);
}
printf(": %d x %d, %dbpp, %s, %s\n", sc->sc_dc->dc_wid,
Home |
Main Index |
Thread Index |
Old Index