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/drm Locks are not like negatives: doub...



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

description:
Locks are not like negatives: doubles don't cancel out.

diffstat:

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

diffs (27 lines):

diff -r 8b1910dcf335 -r d02c32854e06 sys/external/bsd/drm2/drm/drm_cdevsw.c
--- a/sys/external/bsd/drm2/drm/drm_cdevsw.c    Mon Aug 27 14:10:54 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_cdevsw.c    Mon Aug 27 14:11:04 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_cdevsw.c,v 1.9 2018/08/27 07:54:07 riastradh Exp $ */
+/*     $NetBSD: drm_cdevsw.c,v 1.10 2018/08/27 14:11:04 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_cdevsw.c,v 1.9 2018/08/27 07:54:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_cdevsw.c,v 1.10 2018/08/27 14:11:04 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -148,7 +148,7 @@
        }
        firstopen = (dev->open_count == 0);
        dev->open_count++;
-       mutex_lock(&drm_global_mutex);
+       mutex_unlock(&drm_global_mutex);
 
        if (firstopen) {
                /* XXX errno Linux->NetBSD */



Home | Main Index | Thread Index | Old Index