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/include/linux Fix sense of test to mak...



details:   https://anonhg.NetBSD.org/src/rev/25be2727b4e3
branches:  trunk
changeset: 835338:25be2727b4e3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:16:04 2018 +0000

description:
Fix sense of test to make linux_pci_dev_destroy work.

diffstat:

 sys/external/bsd/drm2/include/linux/pci.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c6235c1daeae -r 25be2727b4e3 sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Mon Aug 27 14:15:45 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Mon Aug 27 14:16:04 2018 +0000
@@ -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 @@
                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);



Home | Main Index | Thread Index | Old Index