Skip to content
Commit 235c3610 authored by Jason Ekstrand's avatar Jason Ekstrand Committed by Christian König
Browse files

drm/ttm: Force re-init if ttm_global_init() fails



If we have a failure, decrement the reference count so that the next
call to ttm_global_init() will actually do something instead of assume
everything is all set up.

Signed-off-by: default avatarJason Ekstrand <jason@jlekstrand.net>
Fixes: 62b53b37 ("drm/ttm: use a static ttm_bo_global instance")
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210720181357.2760720-5-jason@jlekstrand.net


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 3abab27c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment