Commit ae8df2ae authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Dave Airlie
Browse files

drm/ttm: Fix locking in an error path

parent 35f62a58
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -174,7 +174,9 @@ int ttm_base_object_init(struct ttm_object_file *tfile,

	return 0;
out_err1:
	spin_lock(&tdev->object_lock);
	(void)drm_ht_remove_item(&tdev->object_hash, &base->hash);
	spin_unlock(&tdev->object_lock);
out_err0:
	return ret;
}