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 Dereference pointer to u...
details: https://anonhg.NetBSD.org/src/rev/0eb173dac1bf
branches: trunk
changeset: 834855:0eb173dac1bf
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:41:49 2018 +0000
description:
Dereference pointer to use what it points at!
diffstat:
sys/external/bsd/drm2/include/linux/interval_tree.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 02052ed758f1 -r 0eb173dac1bf sys/external/bsd/drm2/include/linux/interval_tree.h
--- a/sys/external/bsd/drm2/include/linux/interval_tree.h Mon Aug 27 06:41:35 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/interval_tree.h Mon Aug 27 06:41:49 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: interval_tree.h,v 1.3 2018/08/27 06:38:22 riastradh Exp $ */
+/* $NetBSD: interval_tree.h,v 1.4 2018/08/27 06:41:49 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->last < *k)
return -1;
- if (k < n->first)
+ if (*k < n->first)
return +1;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index