drm/amd/display: Add a dc_state NULL check in dc_state_release
authorAllen Pan <allen.pan@amd.com>
Fri, 23 Feb 2024 23:20:16 +0000 (18:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:12:59 +0000 (13:12 -0400)
commit334b56cea5d9df5989be6cf1a5898114fa70ad98
tree37f445db6d2e3579bef9e502b121fba8351a3804
parente64b3f55e458ce7e2087a0051f47edabf74545e7
drm/amd/display: Add a dc_state NULL check in dc_state_release

[How]
Check wheather state is NULL before releasing it.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Allen Pan <allen.pan@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_state.c