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/i915 Destroy context...



details:   https://anonhg.NetBSD.org/src/rev/201050abf1e6
branches:  riastradh-drm2
changeset: 788506:201050abf1e6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Sep 08 15:34:06 2013 +0000

description:
Destroy context_idr and mm.lock in i915_driver_postclose.

diffstat:

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

diffs (15 lines):

diff -r 3e34bdf33e8f -r 201050abf1e6 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Sun Sep 08 15:33:35 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Sun Sep 08 15:34:06 2013 +0000
@@ -1989,6 +1989,11 @@
 {
        struct drm_i915_file_private *file_priv = file->driver_priv;
 
+#ifdef __NetBSD__
+       idr_destroy(&file_priv->context_idr);
+       spin_lock_destroy(&file_priv->mm.lock);
+#endif
+
        kfree(file_priv);
 }
 



Home | Main Index | Thread Index | Old Index