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/nouveau/core/core Destroy the...



details:   https://anonhg.NetBSD.org/src/rev/d619377f9883
branches:  trunk
changeset: 814872:d619377f9883
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Apr 13 07:59:05 2016 +0000

description:
Destroy the mutex before free.

diffstat:

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

diffs (26 lines):

diff -r b549f342d39e -r d619377f9883 sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c    Wed Apr 13 07:57:15 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c    Wed Apr 13 07:59:05 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_core_subdev.c,v 1.2 2014/08/06 15:01:33 riastradh Exp $        */
+/*     $NetBSD: nouveau_core_subdev.c,v 1.3 2016/04/13 07:59:05 riastradh Exp $        */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_core_subdev.c,v 1.2 2014/08/06 15:01:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_core_subdev.c,v 1.3 2016/04/13 07:59:05 riastradh Exp $");
 
 #include <core/object.h>
 #include <core/subdev.h>
@@ -79,6 +79,7 @@
 {
        int subidx = nv_hclass(subdev) & 0xff;
        nv_device(subdev)->subdev[subidx] = NULL;
+       linux_mutex_destroy(&subdev->mutex);
        nouveau_object_destroy(&subdev->base);
 }
 



Home | Main Index | Thread Index | Old Index