]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Check for NULL pointer
authorSung Joon Kim <sungjoon.kim@amd.com>
Mon, 8 Jul 2024 23:29:49 +0000 (19:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Jul 2024 21:30:23 +0000 (17:30 -0400)
commit4ab68e168ae1695f7c04fae98930740aaf7c50fa
treeeb540645a1bac12c545e1cb6b60d01a3c79e321e
parent6728f55590a667c292cee10c009e16d90f48d63a
drm/amd/display: Check for NULL pointer

[why & how]
Need to make sure plane_state is initialized
before accessing its members.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Xi (Alex) Liu <xi.liu@amd.com>
Signed-off-by: Sung Joon Kim <sungjoon.kim@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 295d91cbc700651782a60572f83c24861607b648)
drivers/gpu/drm/amd/display/dc/core/dc_surface.c