Module Name: src
Committed By: riastradh
Date: Mon Aug 27 14:16:04 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/include/linux: pci.h
Log Message:
Fix sense of test to make linux_pci_dev_destroy work.
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/external/bsd/drm2/include/linux/pci.h
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/include/linux/pci.h
diff -u src/sys/external/bsd/drm2/include/linux/pci.h:1.35 src/sys/external/bsd/drm2/include/linux/pci.h:1.36
--- src/sys/external/bsd/drm2/include/linux/pci.h:1.35 Mon Aug 27 14:15:35 2018
+++ src/sys/external/bsd/drm2/include/linux/pci.h Mon Aug 27 14:16:04 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: pci.h,v 1.35 2018/08/27 14:15:35 riastradh Exp $ */
+/* $NetBSD: pci.h,v 1.36 2018/08/27 14:16:04 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -877,7 +877,7 @@ linux_pci_dev_destroy(struct pci_dev *pd
pdev->pd_rom_vaddr = 0;
}
for (i = 0; i < __arraycount(pdev->pd_resources); i++) {
- if (pdev->pd_resources[i].mapped)
+ if (!pdev->pd_resources[i].mapped)
continue;
bus_space_unmap(pdev->pd_resources[i].bst,
pdev->pd_resources[i].bsh, pdev->pd_resources[i].size);