drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 30 Nov 2023 07:50:16 +0000 (15:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:34 +0000 (15:35 -0800)
commit0b813a6a0087451cb702b6eb841f10856f49d088
tree485e1b01872f5563e3f8ea519cd6af67ff6bd683
parent3bbef34ea81927d34c85c74251017b9b69da4559
drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()

[ Upstream commit 7a2464fac80d42f6f8819fed97a553e9c2f43310 ]

check the alloc_workqueue return value in radeon_crtc_init()
to avoid null-ptr-deref.

Fixes: fa7f517cb26e ("drm/radeon: rework page flip handling v4")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/radeon/radeon_display.c