Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 62ef8d78 authored by Chen Ni's avatar Chen Ni Committed by Greg Kroah-Hartman
Browse files

drm/qxl: Add check for drm_cvt_mode



[ Upstream commit 7bd09a2db0f617377027a2bb0b9179e6959edff3 ]

Add check for the return value of drm_cvt_mode() and return the error if
it fails in order to avoid NULL pointer dereference.

Fixes: 1b043677 ("drm/qxl: add qxl_add_mode helper function")
Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Reviewed-by: default avatarHeng Qi <hengqi@linux.alibaba.com>
Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240621071031.1987974-1-nichen@iscas.ac.cn


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 024e357a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment