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 ordering of interval...



details:   https://anonhg.NetBSD.org/src/rev/5631e9ae219a
branches:  trunk
changeset: 365777:5631e9ae219a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:42:28 2018 +0000

description:
Fix ordering of interval trees, including using the right member names.

diffstat:

 sys/external/bsd/drm2/include/linux/interval_tree.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 03e864ff789d -r 5631e9ae219a sys/external/bsd/drm2/include/linux/interval_tree.h
--- a/sys/external/bsd/drm2/include/linux/interval_tree.h       Mon Aug 27 06:42:17 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/interval_tree.h       Mon Aug 27 06:42:28 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: interval_tree.h,v 1.4 2018/08/27 06:41:49 riastradh Exp $      */
+/*     $NetBSD: interval_tree.h,v 1.5 2018/08/27 06:42:28 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -67,9 +67,9 @@
        const struct interval_tree_node *n = vn;
        const unsigned long *k = vk;
 
-       if (n->last < *k)
+       if (n->start < *k)
                return -1;
-       if (*k < n->first)
+       if (*k < n->start)
                return +1;
        return 0;
 }



Home | Main Index | Thread Index | Old Index