OSDN Git Service

drm/amdgpu:fix firmware memoryleak(v2)
authorMonk Liu <Monk.Liu@amd.com>
Tue, 19 Sep 2017 08:09:53 +0000 (16:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 19:14:25 +0000 (15:14 -0400)
commitc833d8aa4d829e858f1be8f4bd82a1503b611013
tree4656356fc8fa44eb7eeddf23fccceb25998b476e
parent4ff184d70e1dd85cc39f3b8ed0d98b728d6d9b6c
drm/amdgpu:fix firmware memoryleak(v2)

this fix memory leak due to request_firmware after driver
unloaded

v2:
release gmc firmware for gmc6/7/8 as well

Signed-off-by: Monk Liu <Monk.Liu@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_psp.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c