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/linux linux: Fix xa_find_after to actu...



details:   https://anonhg.NetBSD.org/src/rev/f743c3fd7d3a
branches:  trunk
changeset: 1028809:f743c3fd7d3a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:05:18 2021 +0000

description:
linux: Fix xa_find_after to actually find the entry _after_.

diffstat:

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

diffs (27 lines):

diff -r 17fcf2804423 -r f743c3fd7d3a sys/external/bsd/drm2/linux/linux_xa.c
--- a/sys/external/bsd/drm2/linux/linux_xa.c    Sun Dec 19 12:05:08 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_xa.c    Sun Dec 19 12:05:18 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_xa.c,v 1.1 2021/12/19 11:51:07 riastradh Exp $   */
+/*     $NetBSD: linux_xa.c,v 1.2 2021/12/19 12:05:18 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_xa.c,v 1.1 2021/12/19 11:51:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_xa.c,v 1.2 2021/12/19 12:05:18 riastradh Exp $");
 
 #include <sys/radixtree.h>
 
@@ -157,7 +157,7 @@
 xa_find_after(struct xarray *xa, unsigned long *startp, unsigned long max,
     unsigned tagmask)
 {
-       unsigned long start = *startp;
+       unsigned long start = *startp + 1;
        void *found;
 
        if (start == max)



Home | Main Index | Thread Index | Old Index