kernel_samsung_a53x/drivers/gpu/drm/amd
Alex Hung 293de81901 drm/amd/display: Initialize get_bytes_per_element's default to 1
[ 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>
2024-11-23 23:21:41 +01:00
..
acp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amdgpu drm/amdgpu: enable gfxoff quirk on HP 705G4 2024-11-23 23:21:40 +01:00
amdkfd drm/amdkfd: Reconcile the definition and use of oem_id in struct kfd_topology_device 2024-11-23 23:20:57 +01:00
display drm/amd/display: Initialize get_bytes_per_element's default to 1 2024-11-23 23:21:41 +01:00
include drm/amdgpu: Replace one-element array with flexible-array member 2024-11-23 23:21:21 +01:00
pm drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr 2024-11-23 23:20:59 +01:00