]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amd/display: Check stream_status before it is used
authorAlex Hung <alex.hung@amd.com>
Mon, 15 Jul 2024 16:37:28 +0000 (10:37 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 27 Jul 2024 21:31:59 +0000 (17:31 -0400)
commit58a8ee96f84d2c21abb85ad8c22d2bbdf59bd7a9
treef4c6763ee15fb6461ffbdeb9cb181ebfde8f9bae
parent722e96c99f1d7532fdfbb557f50a399f6cc57d82
drm/amd/display: Check stream_status before it is used

[WHAT & HOW]
dc_state_get_stream_status can return null, and therefore null must be
checked before stream_status is used.

This fixes 1 NULL_RETURNS issue reported by Coverity.

Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c