diff mbox

[1/2] drm: Add missing mutex_destroy in drm_dev_init

Message ID 1478784994-2494-1-git-send-email-joonas.lahtinen@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Joonas Lahtinen Nov. 10, 2016, 1:36 p.m. UTC
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(+)

Comments

Joonas Lahtinen Nov. 14, 2016, 12:31 p.m. UTC | #1
On to, 2016-11-10 at 14:16 +0000, Patchwork wrote:
> == Series Details ==
> 
> Series: series starting with [v2] drm: Add missing mutex_destroy in drm_dev_init/release (rev2)
> URL   : https://patchwork.freedesktop.org/series/15110/
> State : success

Daniel applied the other patch and I the second, thanks for review.

Regards, Joonas
diff mbox

Patch

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);