intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] drm: Add missing mutex_destroy in drm_dev_init
@ 2016-11-10 13:36 Joonas Lahtinen
  2016-11-10 13:36 ` [PATCH 2/2] drm/i915: Update i915_driver_load kerneldoc Joonas Lahtinen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Joonas Lahtinen @ 2016-11-10 13:36 UTC (permalink / raw)
  To: Intel graphics driver community testing & development
  Cc: Joonas Lahtinen, Direct Rendering Infrastructure - Development

Add 3 missing mutex_destroy to drm_dev_init teardown.

Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
 drivers/gpu/drm/drm_drv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 6efdba4..ba144b3 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -568,6 +568,9 @@ int drm_dev_init(struct drm_device *dev,
 	drm_fs_inode_free(dev->anon_inode);
 err_free:
 	mutex_destroy(&dev->master_mutex);
+	mutex_destroy(&dev->ctxlist_mutex);
+	mutex_destroy(&dev->filelist_mutex);
+	mutex_destroy(&dev->struct_mutex);
 	return ret;
 }
 EXPORT_SYMBOL(drm_dev_init);
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-11-14 12:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 13:36 [PATCH 1/2] drm: Add missing mutex_destroy in drm_dev_init Joonas Lahtinen
2016-11-10 13:36 ` [PATCH 2/2] drm/i915: Update i915_driver_load kerneldoc Joonas Lahtinen
2016-11-11 17:51   ` Chris Wilson
2016-11-10 13:50 ` [PATCH v2] drm: Add missing mutex_destroy in drm_dev_init/release Joonas Lahtinen
2016-11-10 14:45   ` Chris Wilson
2016-11-10 14:16 ` ✓ Fi.CI.BAT: success for series starting with [v2] drm: Add missing mutex_destroy in drm_dev_init/release (rev2) Patchwork
2016-11-14 12:31   ` Joonas Lahtinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).