drm/amd/amdgpu: Clean up memory leak in cz_dpm_init().
authorTom St Denis <tom.stdenis@amd.com>
Thu, 25 Aug 2016 16:41:15 +0000 (12:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2016 18:02:46 +0000 (14:02 -0400)
commite701f97ff34a3ec904c19d72a7ca81eed98d5ad9
tree370575f5494f2fcf5c1d79f7b9262ff5eb6af44e
parentcc945ce3ab563d7dd7657510e1990f6f606c9b46
drm/amd/amdgpu: Clean up memory leak in cz_dpm_init().

If init fails free up any allocated memory.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cz_dpm.c