]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Fix potential NULL pointer dereferences in 'dcn10_set_output_transfe...
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Thu, 25 Jan 2024 15:46:04 +0000 (21:16 +0530)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:44 +0000 (18:19 -0400)
commit2d9fe7787af01188dc470a649bdbb842d6511fd7
tree72aaaa88c8420f3482810a306b6bab15ac0f7e29
parent69a0a42bdfabe76de18140020b2b0ec8b5aa7973
drm/amd/display: Fix potential NULL pointer dereferences in 'dcn10_set_output_transfer_func()'

[ Upstream commit 9ccfe80d022df7c595f1925afb31de2232900656 ]

The 'stream' pointer is used in dcn10_set_output_transfer_func() before
the check if 'stream' is NULL.

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn10/dcn10_hwseq.c:1892 dcn10_set_output_transfer_func() warn: variable dereferenced before check 'stream' (see line 1875)

Fixes: ddef02de0d71 ("drm/amd/display: add null checks before logging")
Cc: Wyatt Wood <wyatt.wood@amd.com>
Cc: Anthony Koo <Anthony.Koo@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c