diff options
author | Jay Cornwall <jay.cornwall@amd.com> | 2014-11-20 11:52:16 -0600 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@amd.com> | 2014-11-20 11:52:16 -0600 |
commit | b19bdc609ce0deb2b5f96fbd46fd951dc1e2f0f4 (patch) | |
tree | 1f6bf0fb5be3d7d64a1b7a1a24f0ab8d9ea80ad6 | |
parent | 50519a2271af617133e506a6b44253596d3282d9 (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: Oded Gabbay <oded.gabbay@amd.com>
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
-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 0b5922da8fee..2eae23182525 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c @@ -437,6 +437,7 @@ static int unregister_process_nocpsch(struct device_queue_manager *dqm, list_for_each_entry_safe(cur, next, &dqm->queues, list) { if (qpd == cur->qpd) { list_del(&cur->list); + kfree(cur); dqm->processes_count--; goto out; } |