Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/linux Zero the whole thing for good me...
details: https://anonhg.NetBSD.org/src/rev/66aa8c729ec0
branches: trunk
changeset: 992960:66aa8c729ec0
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 14:17:04 2018 +0000
description:
Zero the whole thing for good measure.
diffstat:
sys/external/bsd/drm2/linux/linux_pci.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r dac95b0cae8e -r 66aa8c729ec0 sys/external/bsd/drm2/linux/linux_pci.c
--- a/sys/external/bsd/drm2/linux/linux_pci.c Mon Aug 27 14:16:52 2018 +0000
+++ b/sys/external/bsd/drm2/linux/linux_pci.c Mon Aug 27 14:17:04 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_pci.c,v 1.2 2018/08/27 14:16:52 riastradh Exp $ */
+/* $NetBSD: linux_pci.c,v 1.3 2018/08/27 14:17:04 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.2 2018/08/27 14:16:52 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.3 2018/08/27 14:17:04 riastradh Exp $");
#include <linux/pci.h>
@@ -57,6 +57,8 @@
PCI_SUBSYS_ID_REG);
unsigned i;
+ memset(pdev, 0, sizeof(*pdev)); /* paranoia */
+
pdev->pd_pa = *pa;
pdev->pd_kludges = kludges;
pdev->pd_rom_vaddr = NULL;
Home |
Main Index |
Thread Index |
Old Index