]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Fix memleak in cz_parse_power_table()
authorTom St Denis <tom.stdenis@amd.com>
Thu, 25 Aug 2016 16:16:24 +0000 (12:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2016 18:02:39 +0000 (14:02 -0400)
commit7241ed30ee789b4675418747e7c8818b0aac7158
tree6d48b546917f12408f92bb2565f8893d64f7eac7
parentf6d6cc72a02c33738547763031d463cec0ddbea9
drm/amd/amdgpu: Fix memleak in cz_parse_power_table()

If one of the entries fails to be allocated then free
all of the previous entries before freeing the array which
holds their pointers.

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