From: Greg Kroah-Hartman Date: Mon, 29 Jul 2024 09:59:28 +0000 (+0200) Subject: 5.4-stable patches X-Git-Tag: v6.1.103~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4758c4d5dc5fb8d4687cbd9b15c5319ac2099839;p=thirdparty%2Fkernel%2Fstable-queue.git 5.4-stable patches added patches: drm-amd-display-check-for-null-pointer.patch --- diff --git a/queue-5.4/drm-amd-display-check-for-null-pointer.patch b/queue-5.4/drm-amd-display-check-for-null-pointer.patch new file mode 100644 index 00000000000..7c3dafb4746 --- /dev/null +++ b/queue-5.4/drm-amd-display-check-for-null-pointer.patch @@ -0,0 +1,38 @@ +From 4ab68e168ae1695f7c04fae98930740aaf7c50fa Mon Sep 17 00:00:00 2001 +From: Sung Joon Kim +Date: Mon, 8 Jul 2024 19:29:49 -0400 +Subject: drm/amd/display: Check for NULL pointer + +From: Sung Joon Kim + +commit 4ab68e168ae1695f7c04fae98930740aaf7c50fa upstream. + +[why & how] +Need to make sure plane_state is initialized +before accessing its members. + +Cc: Mario Limonciello +Cc: Alex Deucher +Cc: stable@vger.kernel.org +Reviewed-by: Xi (Alex) Liu +Signed-off-by: Sung Joon Kim +Signed-off-by: Aurabindo Pillai +Signed-off-by: Alex Deucher +(cherry picked from commit 295d91cbc700651782a60572f83c24861607b648) +Signed-off-by: Greg Kroah-Hartman +--- + drivers/gpu/drm/amd/display/dc/core/dc_surface.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c +@@ -165,7 +165,8 @@ const struct dc_plane_status *dc_plane_g + if (pipe_ctx->plane_state != plane_state) + continue; + +- pipe_ctx->plane_state->status.is_flip_pending = false; ++ if (pipe_ctx->plane_state) ++ pipe_ctx->plane_state->status.is_flip_pending = false; + + break; + } diff --git a/queue-5.4/series b/queue-5.4/series index 9e912d4a09d..b69b8465467 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -96,3 +96,4 @@ media-venus-fix-use-after-free-in-vdec_close.patch hfs-fix-to-initialize-fields-of-hfs_inode_info-after-hfs_alloc_inode.patch drm-gma500-fix-null-pointer-dereference-in-cdv_intel_lvds_get_modes.patch drm-gma500-fix-null-pointer-dereference-in-psb_intel_lvds_get_modes.patch +drm-amd-display-check-for-null-pointer.patch