drm/amdgpu/powerplay/vega10: fix memory leak in error path
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 01:43:00 +0000 (20:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 21:01:18 +0000 (16:01 -0500)
commita423f79ad74710bf4d0c16bf0435ad84830dd35c
tree4f3fc0c5e95bbf0f6809cf165beefd6f837de7e7
parentdaf8809626c0ee7a152f9c34058fc3b43385dd51
drm/amdgpu/powerplay/vega10: fix memory leak in error path

Free the backend structure if we fail to allocate device
memory.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c