summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorDharageswari.R <dharageswari.r@intel.com>2016-02-03 17:59:47 +0530
committerMark Brown <broonie@kernel.org>2016-02-04 11:36:14 +0000
commit9ba8ffef9635c11102bc42d0f2d0a4213de273d5 (patch)
treeae8aef06cfb9e4351a7d6dad5e8a6c079cfa4c74 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parent7ca42f5ac5e0d8011086bcfa00e85aede42f0b78 (diff)
ASoC: Intel: Skylake: Fix pipe memory allocation leak
We check and allocate pipeline resources in one shot. That causes leaks if module creation fails later as that is not freed. So split the resource allocation into two, first check if resources are available and then add the resources upon successful creation. So two new functions are added for checking and current functions are re-purposed to only add the resources for memory and MCPS. Signed-off-by: Dharageswari.R <dharageswari.r@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions