Module Name: src
Committed By: riastradh
Date: Wed Jul 24 03:55:48 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/dist/drm [riastradh-drm2]: drm_context.c
Log Message:
Destroy the idr in drm_ctxbitmap_cleanup.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.5 -r1.1.1.1.2.6 \
src/sys/external/bsd/drm2/dist/drm/drm_context.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/drm_context.c
diff -u src/sys/external/bsd/drm2/dist/drm/drm_context.c:1.1.1.1.2.5 src/sys/external/bsd/drm2/dist/drm/drm_context.c:1.1.1.1.2.6
--- src/sys/external/bsd/drm2/dist/drm/drm_context.c:1.1.1.1.2.5 Wed Jul 24 02:09:07 2013
+++ src/sys/external/bsd/drm2/dist/drm/drm_context.c Wed Jul 24 03:55:48 2013
@@ -121,6 +121,9 @@ void drm_ctxbitmap_cleanup(struct drm_de
{
mutex_lock(&dev->struct_mutex);
idr_remove_all(&dev->ctx_idr);
+#ifdef __NetBSD__
+ idr_destroy(&dev->ctx_idr);
+#endif
mutex_unlock(&dev->struct_mutex);
}