/* Removes any name for the object. Note that this must be called before drm_gem_object_free or we'll be touching freed memory  */
void drm_gem_object_handle_free(struct kref *kref)
/* Removes any name for the object. Note that this must be called before drm_gem_object_free or we'll be touching freed memory  */
void drm_gem_object_handle_free(struct kref *kref)
{
	struct drm_gem_object *obj = container_of(kref,
						  struct drm_gem_object,
						  handlecount);
	struct drm_device *dev = obj->dev;
	spin_lock(&dev->object_name_lock);
	if (obj->name) {
		idr_remove(&dev->object_name_idr, obj->name);
		obj->name = 0;
		spin_unlock(&dev->object_name_lock);
		drm_gem_object_unreference(obj);
	} else
		spin_unlock(&dev->object_name_lock);
}