diff options
author | Christian König <christian.koenig@amd.com> | 2019-04-16 11:49:17 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-04-19 11:11:20 -0500 |
commit | bd4264112f93045704731850c5e4d85db981cd85 (patch) | |
tree | f14d540c09f52d5f3d629af72b5b11e5f7fd7f42 /include/drm/ttm | |
parent | 00fd14ff3017f64a9a03a08291e4be0d87bedc17 (diff) | |
download | lwn-bd4264112f93045704731850c5e4d85db981cd85.tar.gz lwn-bd4264112f93045704731850c5e4d85db981cd85.zip |
drm/ttm: fix re-init of global structures
When a driver unloads without unloading TTM we don't correctly
clear the global structures leading to errors on re-init.
Next step should probably be to remove the global structures and
kobjs all together, but this is tricky since we need to maintain
backward compatibility.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Tested-by: Karol Herbst <kherbst@redhat.com>
CC: stable@vger.kernel.org # 5.0.x
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/ttm')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index cbf3180cb612..668ad971cd7b 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -420,7 +420,6 @@ extern struct ttm_bo_global { /** * Protected by ttm_global_mutex. */ - unsigned int use_count; struct list_head device_list; /** |