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 the idr and ...
details: https://anonhg.NetBSD.org/src/rev/9114f267631d
branches: riastradh-drm2
changeset: 788241:9114f267631d
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:52:37 2013 +0000
description:
Destroy the idr and spin lock in drm_gem_destroy.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_gem.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r cf24021cfe45 -r 9114f267631d sys/external/bsd/drm2/dist/drm/drm_gem.c
--- a/sys/external/bsd/drm2/dist/drm/drm_gem.c Wed Jul 24 02:52:22 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_gem.c Wed Jul 24 02:52:37 2013 +0000
@@ -130,6 +130,11 @@
drm_ht_remove(&mm->offset_hash);
kfree(mm);
dev->mm_private = NULL;
+
+#ifdef __NetBSD__
+ idr_destroy(&dev->object_name_idr);
+ spin_lock_destroy(&dev->object_name_lock);
+#endif
}
/**
Home |
Main Index |
Thread Index |
Old Index