Module Name: src
Committed By: riastradh
Date: Wed Apr 13 07:52:47 UTC 2016
Modified Files:
src/sys/external/bsd/drm2/dist/drm/nouveau/core/include/core: namedb.h
Log Message:
Destroy the lock before caller frees memory.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/sys/external/bsd/drm2/dist/drm/nouveau/core/include/core/namedb.h
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/include/core/namedb.h
diff -u src/sys/external/bsd/drm2/dist/drm/nouveau/core/include/core/namedb.h:1.1.1.1 src/sys/external/bsd/drm2/dist/drm/nouveau/core/include/core/namedb.h:1.2
--- src/sys/external/bsd/drm2/dist/drm/nouveau/core/include/core/namedb.h:1.1.1.1 Thu Jul 17 01:50:59 2014
+++ src/sys/external/bsd/drm2/dist/drm/nouveau/core/include/core/namedb.h Wed Apr 13 07:52:47 2016
@@ -28,8 +28,11 @@ nv_namedb(void *obj)
nouveau_parent_init(&(p)->base)
#define nouveau_namedb_fini(p,s) \
nouveau_parent_fini(&(p)->base, (s))
-#define nouveau_namedb_destroy(p) \
- nouveau_parent_destroy(&(p)->base)
+#define nouveau_namedb_destroy(p) do \
+{ \
+ rwlock_destroy(&(p)->lock); \
+ nouveau_parent_destroy(&(p)->base); \
+} while (0)
int nouveau_namedb_create_(struct nouveau_object *, struct nouveau_object *,
struct nouveau_oclass *, u32 pclass,