]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:45:21 +0000 (23:45 -0500)
commitc2536460f74a9423757b98935a214fd78ad20592
tree2b02d4bcfca25e1b075aacf82e57420df4be51a5
parent950671f9e79e1699ed18c301f22aad830b7f7309
drm/amdkfd: fix a potential NULL pointer dereference (v2)

BugLink: https://bugs.launchpad.net/bugs/1859712
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c