Module Name: src
Committed By: riastradh
Date: Mon Aug 27 14:17:05 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/linux: linux_pci.c
Log Message:
Zero the whole thing for good measure.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/drm2/linux/linux_pci.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/external/bsd/drm2/linux/linux_pci.c
diff -u src/sys/external/bsd/drm2/linux/linux_pci.c:1.2 src/sys/external/bsd/drm2/linux/linux_pci.c:1.3
--- src/sys/external/bsd/drm2/linux/linux_pci.c:1.2 Mon Aug 27 14:16:52 2018
+++ src/sys/external/bsd/drm2/linux/linux_pci.c Mon Aug 27 14:17:04 2018
@@ -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 @@ linux_pci_dev_init(struct pci_dev *pdev,
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;