]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Check pipe->stream before passing it to a function
authorAlex Hung <alex.hung@amd.com>
Mon, 3 Mar 2025 18:16:19 +0000 (11:16 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Mar 2025 18:03:46 +0000 (14:03 -0400)
commit082ec59662046fd473a679e7bf6ce63968a54120
treee7361f9e56bf7d185b3f600872746d077021bcf7
parent84ff5895399c01be49620c0fa2ac04d2715a2e00
drm/amd/display: Check pipe->stream before passing it to a function

[WHAT & HOW]
dp_is_128b_132b_signal dereferences pipe->stream so it is necessary to
check it in advance.

Also fix erroneous spaces and move a variable declaration to top.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@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/clk_mgr/dcn35/dcn35_clk_mgr.c