aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorYong Zhao <[email protected]>2017-12-09 04:08:48 +0000
committerOded Gabbay <[email protected]>2017-12-09 04:08:48 +0000
commit5108d768408abc80e4e8d99f5b406a73cb04056b (patch)
tree19942f9b6191eaa225292b267415c236b4bf66fb /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parentdrm/amdkfd: Topology: Fix location_id (diff)
downloadkernel-5108d768408abc80e4e8d99f5b406a73cb04056b.tar.gz
kernel-5108d768408abc80e4e8d99f5b406a73cb04056b.zip
drm/amdkfd: Fix memory leaks in kfd topology
Kobject created using kobject_create_and_add() can be freed using kobject_put() when there is no referenece any more. However, kobject memory allocated with kzalloc() has to set up a release callback in order to free it when the counter decreases to 0. Otherwise it causes memory leak. Signed-off-by: Yong Zhao <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions