drm/amdkfd: destroy mqd when destroying kernel queue
authorBen Goz <ben.goz@amd.com>
Sun, 8 Mar 2015 12:17:02 +0000 (14:17 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 16 Mar 2015 21:36:58 +0000 (23:36 +0200)
commitaaad2d8c7b62489f03ceac4fa3c9ebb17ccc7860
tree1b20a28ff7aca134b3eec9e4a5428f7771743640
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda
drm/amdkfd: destroy mqd when destroying kernel queue

This patch adds a missing destruction of mqd, when destroying a kernel queue.
Without the destruction, there is a memory leakage when repeatedly creating and
destroying kernel queues.

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c