![]() [ Upstream commit 4067f4fa0423a89fb19a30b57231b384d77d2610 ] Variables, used as denominators and maybe not assigned to other values, should not be 0. bytes_per_element_y & bytes_per_element_c are initialized by get_bytes_per_element() which should never return 0. This fixes 10 DIVIDE_BY_ZERO issues reported by Coverity. Signed-off-by: Alex Hung <alex.hung@amd.com> Reviewed-by: Aurabindo Pillai <aurabindo.pillai@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> 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 |