drm/amd/display: Add Null check for DPP resource
authorGabe Teeger <gabe.teeger@amd.com>
Fri, 15 Sep 2023 22:18:48 +0000 (18:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Oct 2023 22:40:00 +0000 (18:40 -0400)
commite186400685d8a9287388a8535e2399bc673bfe95
treefa7c7af9b945d8c92a00e5f84ca52d88c86bce13
parentb8e6aec14691b44e6a26d25052a2f4fa8c5f7b28
drm/amd/display: Add Null check for DPP resource

[what and why]
Check whether dpp resource pointer is null in advance and return early
if so.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Martin Leung <martin.leung@amd.com>
Signed-off-by: Gabe Teeger <gabe.teeger@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c