]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Pass non-null to dcn20_validate_apply_pipe_split_flags
authorAlex Hung <alex.hung@amd.com>
Thu, 27 Jun 2024 17:51:27 +0000 (11:51 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:07:11 +0000 (17:07 -0400)
commit5559598742fb4538e4c51c48ef70563c49c2af23
tree5cb8b2e5b1912d76e829bf9218c9000425323256
parent3718a619a8c0a53152e76bb6769b6c414e1e83f4
drm/amd/display: Pass non-null to dcn20_validate_apply_pipe_split_flags

[WHAT & HOW]
"dcn20_validate_apply_pipe_split_flags" dereferences merge, and thus it
cannot be a null pointer. Let's pass a valid pointer to avoid null
dereference.

This fixes 2 FORWARD_NULL issues reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Alex Hung <alex.hung@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/resource/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c