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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:43:31 +0000 (16:43 +0100)
commitfbeec1d0e552662539a1b72e2530a7006bd677fa
treef2b6636112293c1845b9bee5f6413243bc04e57e
parent3516e9d1ef00977854a51693ced49617e7341e96
drm/amdkfd: fix a potential NULL pointer dereference (v2)

[ Upstream commit 81de29d842ccb776c0f77aa3e2b11b07fff0c0e2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c