![]() [ Upstream commit 66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad ] This commit addresses a null pointer dereference issue in the `commit_planes_for_stream` function at line 4140. The issue could occur when `top_pipe_to_program` is null. The fix adds a check to ensure `top_pipe_to_program` is not null before accessing its stream_res. This prevents a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906) Cc: Tom Chung <chiahsuan.chung@amd.com> Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Cc: Roman Li <roman.li@amd.com> Cc: Alex Hung <alex.hung@amd.com> Cc: Aurabindo Pillai <aurabindo.pillai@amd.com> Cc: Harry Wentland <harry.wentland@amd.com> Cc: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Reviewed-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org> |
||
---|---|---|
.. | ||
basics | ||
bios | ||
calcs | ||
clk_mgr | ||
core | ||
dce | ||
dce60 | ||
dce80 | ||
dce100 | ||
dce110 | ||
dce112 | ||
dce120 | ||
dcn10 | ||
dcn20 | ||
dcn21 | ||
dcn30 | ||
dml | ||
dsc | ||
gpio | ||
hdcp | ||
inc | ||
irq | ||
virtual | ||
dc.h | ||
dc_bios_types.h | ||
dc_ddc_types.h | ||
dc_dmub_srv.c | ||
dc_dmub_srv.h | ||
dc_dp_types.h | ||
dc_dsc.h | ||
dc_helper.c | ||
dc_hw_types.h | ||
dc_link.h | ||
dc_stream.h | ||
dc_types.h | ||
dm_cp_psp.h | ||
dm_event_log.h | ||
dm_helpers.h | ||
dm_pp_smu.h | ||
dm_services.h | ||
dm_services_types.h | ||
irq_types.h | ||
Makefile | ||
os_types.h |