linux/drivers/gpu/drm/amd
Colin Ian King bfaa1ce809 drm/amdkfd: check for null dev to avoid a null pointer dereference
The call to kfd_device_by_id can potentially return null, so check that
dev is null and return with -EINVAL to avoid a null pointer dereference.

Detected by CoverityScan CID#1454629 ("Dereference null return value")

Fixes: 5d71dbc3a5 ("drm/amdkfd: Implement image tiling mode support v2")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2017-09-08 15:13:33 +01:00
..
acp drm: amd: remove broken include path 2017-03-14 19:19:44 -04:00
amdgpu amd fixes pull 2017-09-15 17:52:52 -07:00
amdkfd drm/amdkfd: check for null dev to avoid a null pointer dereference 2017-09-08 15:13:33 +01:00
include drm/amdgpu/gfx8: fix spelling typo in mqd allocation 2017-08-24 11:48:40 -04:00
powerplay amd fixes pull 2017-09-15 17:52:52 -07:00
scheduler drm/amdgpu: discard commands of killed processes 2017-08-24 11:48:42 -04:00