summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorChristian König2019-04-16 11:49:17 +0200
committerAlex Deucher2019-04-19 18:11:20 +0200
commitbd4264112f93045704731850c5e4d85db981cd85 (patch)
treef14d540c09f52d5f3d629af72b5b11e5f7fd7f42 /include/drm/ttm
parentMerge branch 'drm-fixes-5.1' of git://people.freedesktop.org/~agd5f/linux int... (diff)
downloadkernel-qcow2-linux-bd4264112f93045704731850c5e4d85db981cd85.tar.gz
kernel-qcow2-linux-bd4264112f93045704731850c5e4d85db981cd85.tar.xz
kernel-qcow2-linux-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.h1
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;
/**