linux-uconsole/drivers/gpu/drm/amd
Yong Zhao 7a9a365664 drm/amdkfd: Fix memory leaks in kfd topology
[ Upstream commit 5108d76840 ]

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 <yong.zhao@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-22 09:23:29 +01:00
..
amdgpu drm/amdgpu: Fail fb creation from imported dma-bufs. (v2) 2018-03-22 09:23:25 +01:00
amdkfd drm/amdkfd: Fix memory leaks in kfd topology 2018-03-22 09:23:29 +01:00
include Merge branch 'drm-next-4.4' of git://people.freedesktop.org/~agd5f/linux into drm-next 2015-11-05 10:57:25 +10:00
scheduler drm/amdgpu: fix race condition in amd_sched_entity_push_job 2015-12-02 15:04:04 -05:00