drm/amd/powerplay: fix memory leakage when reload (v2)
authorYintian Tao <yttao@amd.com>
Thu, 4 Jan 2018 03:45:23 +0000 (11:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Jan 2018 20:44:50 +0000 (15:44 -0500)
commita25513e7b9b15c318ec44113682e988829aef746
tree5761780f9f69146f8361fc041f201014e9b5bc6b
parent32b646b215e6e382045cf464e342b1cdd6f901c6
drm/amd/powerplay: fix memory leakage when reload (v2)

add smu_free_memory when smu fini to prevent memory leakage

v2: squash in typo fix (Yintian) and warning (Harry)

Signed-off-by: Yintian Tao <yttao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c