]> 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>
Tue, 23 Jul 2024 21:35:26 +0000 (17:35 -0400)
commit295d91cbc700651782a60572f83c24861607b648
tree46b55108fa4fcf44d2c042d424dfb14a1a7b2b83
parent72dc6bf159467f43667bead6016965821186490b
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>
drivers/gpu/drm/amd/display/dc/core/dc_surface.c