diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-07-20 13:13:55 -0500 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-07-21 08:34:43 +0200 |
commit | 235c3610d5f02ee91244239b43cd9ae8b4859dff (patch) | |
tree | 61990eca9c2f0230d0f797cf3e74d37deb85f10f /lib/test_fortify/write_overflow-strncpy.c | |
parent | 3abab27c322e0f2acf981595aa8040c9164dc9fb (diff) |
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: Jason Ekstrand <jason@jlekstrand.net>
Fixes: 62b53b37e4b1 ("drm/ttm: use a static ttm_bo_global instance")
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210720181357.2760720-5-jason@jlekstrand.net
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions