Module Name: src
Committed By: riastradh
Date: Mon Aug 27 14:16:52 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/linux: linux_pci.c
Log Message:
Make sure the resources are marked unmapped initially.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 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.1 src/sys/external/bsd/drm2/linux/linux_pci.c:1.2
--- src/sys/external/bsd/drm2/linux/linux_pci.c:1.1 Mon Aug 27 14:16:38 2018
+++ src/sys/external/bsd/drm2/linux/linux_pci.c Mon Aug 27 14:16:52 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_pci.c,v 1.1 2018/08/27 14:16:38 riastradh Exp $ */
+/* $NetBSD: linux_pci.c,v 1.2 2018/08/27 14:16:52 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.1 2018/08/27 14:16:38 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.2 2018/08/27 14:16:52 riastradh Exp $");
#include <linux/pci.h>
@@ -97,6 +97,7 @@ linux_pci_dev_init(struct pci_dev *pdev,
pdev->pd_resources[i].flags = 0;
}
pdev->pd_resources[i].kva = NULL;
+ pdev->pd_resources[i].mapped = false;
}
}