]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm: omapdrm: Add missing check for alloc_ordered_workqueue
authorMa Ke <make24@iscas.ac.cn>
Thu, 8 Aug 2024 06:13:36 +0000 (14:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:03:54 +0000 (12:03 +0200)
commit334de68eda2b99892ba869c15cb59bc956fd9f42
tree3b267bd473acf6f83817655465841ae1c525d843
parentc9e75dd08b3f93e68ae909b8759b70ac00403cdd
drm: omapdrm: Add missing check for alloc_ordered_workqueue

commit e794b7b9b92977365c693760a259f8eef940c536 upstream.

As it may return NULL pointer and cause NULL pointer dereference. Add check
for the return value of alloc_ordered_workqueue.

Cc: stable@vger.kernel.org
Fixes: 2f95bc6d324a ("drm: omapdrm: Perform initialization/cleanup at probe/remove time")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240808061336.2796729-1-make24@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/omapdrm/omap_drv.c