]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: warn if dp aux is still attached on free
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 2 Oct 2016 21:06:46 +0000 (00:06 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2016 16:39:03 +0000 (12:39 -0400)
commit968bad87b53baef695662f3bedfedeaf024dea93
treea050ecd0a9ec5dbf8de6df415b91a3dbb7040f73
parent04c16e0f4da3d0f1c6b1df500a6d2ea6bbbea245
drm/amdgpu: warn if dp aux is still attached on free

If this happens (and it recently did), we free a structure while part of
it is still in use, which results in non-obvious crashes. The way it's
detached is not trivial (DRM core has to call the connector .destroy
callback and things must be torn down in the right order), so better
detect it and warn early.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c