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 Let's try not to step on each ot...



details:   https://anonhg.NetBSD.org/src/rev/4d4c9206ebdc
branches:  trunk
changeset: 366415:4d4c9206ebdc
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 15:28:16 2018 +0000

description:
Let's try not to step on each others' toes, shall we?

diffstat:

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

diffs (27 lines):

diff -r 48f1eee5b89e -r 4d4c9206ebdc sys/external/bsd/drm2/linux/linux_reservation.c
--- a/sys/external/bsd/drm2/linux/linux_reservation.c   Mon Aug 27 15:28:03 2018 +0000
+++ b/sys/external/bsd/drm2/linux/linux_reservation.c   Mon Aug 27 15:28:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_reservation.c,v 1.8 2018/08/27 15:25:14 riastradh Exp $  */
+/*     $NetBSD: linux_reservation.c,v 1.9 2018/08/27 15:28:16 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.8 2018/08/27 15:25:14 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.9 2018/08/27 15:28:16 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -1035,7 +1035,7 @@
        rcu_read_unlock();
        mutex_enter(&rpoll->rp_lock);
        selrecord(curlwp, &rpoll->rp_selq);
-       if (rpoll->rp_claimed)
+       if (!rpoll->rp_claimed)
                claimed = rpoll->rp_claimed = true;
        mutex_exit(&rpoll->rp_lock);
        recorded = true;



Home | Main Index | Thread Index | Old Index