Files
linux/drivers/gpu/drm
Yong Zhao 7a9a365664 drm/amdkfd: Fix memory leaks in kfd topology
[ Upstream commit 5108d768408abc80e4e8d99f5b406a73cb04056b ]

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
..
2018-02-25 11:03:52 +01:00
2017-11-08 10:06:28 +01:00
2015-10-19 11:00:44 +02:00
2018-03-22 09:23:23 +01:00
2015-09-30 10:44:48 +02:00
2015-09-30 10:44:48 +02:00
2015-09-30 10:44:48 +02:00
2015-09-30 10:44:48 +02:00