]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Disable irq on device before destroying it
authorMikita Lipski <mikita.lipski@amd.com>
Thu, 15 Mar 2018 13:37:08 +0000 (09:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Mar 2018 04:44:03 +0000 (23:44 -0500)
commit959bc6c9e868b84fc37f7b935353c0b4a310d0ac
treed99fe9c189125a528fbdece5eda5f755402c37b4
parent2d82b164874ae3eeead68cefb92363cd43c79cbb
drm/amdgpu: Disable irq on device before destroying it

Disable irq on devices before destroying them. That prevents
use-after-free memory access when unloading the driver.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c