drm/amd/display: Added missing null checks
authorSohaib Nadeem <sohaib.nadeem@amd.com>
Tue, 12 Mar 2024 21:32:28 +0000 (17:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Mar 2024 05:36:44 +0000 (01:36 -0400)
commite4067957363742c762eb68041367e5ea9a465f60
tree7d96b0d275a7475ee7d66aca2e80d21506236ecb
parent9d43241953f729626a7d452417a2832092a9ec1d
drm/amd/display: Added missing null checks

[why&how]
Add the missing null check before dereference for dc_stream_status*

Fixes: 2d5bb791e24f ("drm/amd/display: Implement update_planes_and_stream_v3 sequence")
Reviewed-by: Josip Pavic <josip.pavic@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Sohaib Nadeem <sohaib.nadeem@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.c