Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f92e1ee5 authored by Joonas Lahtinen's avatar Joonas Lahtinen Committed by Daniel Vetter
Browse files

drm: Add missing mutex_destroy in drm_dev_init/release

parent d8c1abd9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);
@@ -630,6 +633,9 @@ static void drm_dev_release(struct kref *ref)
	drm_minor_free(dev, DRM_MINOR_CONTROL);

	mutex_destroy(&dev->master_mutex);
	mutex_destroy(&dev->ctxlist_mutex);
	mutex_destroy(&dev->filelist_mutex);
	mutex_destroy(&dev->struct_mutex);
	kfree(dev->unique);
	kfree(dev);
}