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/dist/drm Call drm_modeset_lock_fini in...



details:   https://anonhg.NetBSD.org/src/rev/8a3288aaf9f6
branches:  trunk
changeset: 992987:8a3288aaf9f6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:40:30 2018 +0000

description:
Call drm_modeset_lock_fini in drm_plane_cleanup.

>From mrg@.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_crtc.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2973b0f44cdf -r 8a3288aaf9f6 sys/external/bsd/drm2/dist/drm/drm_crtc.c
--- a/sys/external/bsd/drm2/dist/drm/drm_crtc.c Mon Aug 27 14:40:13 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_crtc.c Mon Aug 27 14:40:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_crtc.c,v 1.10 2018/08/27 14:39:46 riastradh Exp $  */
+/*     $NetBSD: drm_crtc.c,v 1.11 2018/08/27 14:40:30 riastradh Exp $  */
 
 /*
  * Copyright (c) 2006-2008 Intel Corporation
@@ -32,7 +32,7 @@
  *      Jesse Barnes <jesse.barnes%intel.com@localhost>
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_crtc.c,v 1.10 2018/08/27 14:39:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_crtc.c,v 1.11 2018/08/27 14:40:30 riastradh Exp $");
 
 #include <linux/err.h>
 #include <linux/spinlock.h>
@@ -1295,6 +1295,7 @@
        WARN_ON(plane->state && !plane->funcs->atomic_destroy_state);
        if (plane->state && plane->funcs->atomic_destroy_state)
                plane->funcs->atomic_destroy_state(plane, plane->state);
+       drm_modeset_lock_fini(&plane->mutex);
 
        memset(plane, 0, sizeof(*plane));
 }



Home | Main Index | Thread Index | Old Index