diff options
author | Jay Cornwall <jay.cornwall@amd.com> | 2014-11-20 12:52:16 -0500 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@amd.com> | 2014-11-20 12:52:16 -0500 |
commit | f5d896bbd03a03bef436d9358599b50962095f38 (patch) | |
tree | 5c929f5c574914d02c80877ad246e5f1db303b35 /drivers/gpu/drm/amd/amdkfd | |
parent | 5cd78de5267f36c090043836649b31c12533bbe9 (diff) |
amdkfd: Fix memory leak on process deregistration
struct device_process_node was allocated during process registration but
not released at process deregistration.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c index 718f50e81e28..bc8961c3e073 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | |||
@@ -409,6 +409,7 @@ static int unregister_process_nocpsch(struct device_queue_manager *dqm, | |||
409 | list_for_each_entry_safe(cur, next, &dqm->queues, list) { | 409 | list_for_each_entry_safe(cur, next, &dqm->queues, list) { |
410 | if (qpd == cur->qpd) { | 410 | if (qpd == cur->qpd) { |
411 | list_del(&cur->list); | 411 | list_del(&cur->list); |
412 | kfree(cur); | ||
412 | dqm->processes_count--; | 413 | dqm->processes_count--; |
413 | goto out; | 414 | goto out; |
414 | } | 415 | } |