mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-06 22:55:11 +00:00
drm/ttm: Fix locking in an error path
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
35f62a5829
commit
ae8df2ae8a
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue