]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdkfd: fix a potential NULL pointer dereference (v2)
authorAllen Pais <allen.pais@oracle.com>
Wed, 18 Sep 2019 16:30:31 +0000 (22:00 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:00 +0000 (09:11 -0500)
commit81de29d842ccb776c0f77aa3e2b11b07fff0c0e2
tree06f5b3914d84cafeb507bd75fd3923dd8a8cbf39
parentf77c7109c071edc148dc6c71dcf927059516235f
drm/amdkfd: fix a potential NULL pointer dereference (v2)

alloc_workqueue is not checked for errors and as a result,
a potential NULL dereference could occur.

v2 (Felix Kuehling):
* Fix compile error (kfifo_free instead of fifo_free)
* Return proper error code

Signed-off-by: Allen Pais <allen.pais@oracle.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c