]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdkfd: Dereference null return value
authorAndrew Martin <Andrew.Martin@amd.com>
Tue, 26 Nov 2024 17:10:59 +0000 (12:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:16:09 +0000 (10:16 -0500)
commita592bb19abdc2072875c87da606461bfd7821b08
treefb357aeea29ab3717ce4d06fec75ca2d5b119779
parent5c3de6b02d38eb9386edf50490e050bb44398e40
drm/amdkfd: Dereference null return value

In the function pqm_uninit there is a call-assignment of "pdd =
kfd_get_process_device_data" which could be null, and this value was
later dereferenced without checking.

Fixes: fb91065851cd ("drm/amdkfd: Refactor queue wptr_bo GART mapping")
Signed-off-by: Andrew Martin <Andrew.Martin@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c