Module Name: src
Committed By: riastradh
Date: Wed Apr 13 07:59:05 UTC 2016
Modified Files:
src/sys/external/bsd/drm2/dist/drm/nouveau/core/core:
nouveau_core_subdev.c
Log Message:
Destroy the mutex before free.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c
diff -u src/sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c:1.2 src/sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c:1.3
--- src/sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c:1.2 Wed Aug 6 15:01:33 2014
+++ src/sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_subdev.c Wed Apr 13 07:59:05 2016
@@ -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 @@ nouveau_subdev_destroy(struct nouveau_su
{
int subidx = nv_hclass(subdev) & 0xff;
nv_device(subdev)->subdev[subidx] = NULL;
+ linux_mutex_destroy(&subdev->mutex);
nouveau_object_destroy(&subdev->base);
}