Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Destroy mode config ...



details:   https://anonhg.NetBSD.org/src/rev/7c78b1b60b5b
branches:  riastradh-drm2
changeset: 788493:7c78b1b60b5b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 04:03:15 2013 +0000

description:
Destroy mode config locks in drm_mode_config_cleanup.

diffstat:

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

diffs (15 lines):

diff -r 36983c7109ae -r 7c78b1b60b5b sys/external/bsd/drm2/dist/drm/drm_crtc.c
--- a/sys/external/bsd/drm2/dist/drm/drm_crtc.c Wed Jul 24 04:02:58 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_crtc.c Wed Jul 24 04:03:15 2013 +0000
@@ -1145,6 +1145,11 @@
 
        idr_remove_all(&dev->mode_config.crtc_idr);
        idr_destroy(&dev->mode_config.crtc_idr);
+
+#ifdef __NetBSD__
+       linux_mutex_destroy(&dev->mode_config.mutex);
+       linux_mutex_destroy(&dev->mode_config.idr_mutex);
+#endif
 }
 EXPORT_SYMBOL(drm_mode_config_cleanup);
 



Home | Main Index | Thread Index | Old Index