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

drm/ttm: Fix locking in an error path

Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 35f62a58
...@@ -174,7 +174,9 @@ int ttm_base_object_init(struct ttm_object_file *tfile, ...@@ -174,7 +174,9 @@ int ttm_base_object_init(struct ttm_object_file *tfile,
return 0; return 0;
out_err1: out_err1:
spin_lock(&tdev->object_lock);
(void)drm_ht_remove_item(&tdev->object_hash, &base->hash); (void)drm_ht_remove_item(&tdev->object_hash, &base->hash);
spin_unlock(&tdev->object_lock);
out_err0: out_err0:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment