]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ac8cc4dcc347df1f5c6a603d92b53be4cf06dbf
tree4656356fc8fa44eb7eeddf23fccceb25998b476e
parentc46a3bc83062b0968555f58761fa93bee2520fa5
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