summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/solomon/ssd130x.c
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2026-09-11 10:29:02 -0600
committerAlex Deucher <alexander.deucher@amd.com>2026-09-23 14:19:40 -0400
commit92dd8d3edf395efbe812d29dba763098885befbe (patch)
tree10aad9d972629872cb44f24674854940b8dd8c76 /drivers/gpu/drm/solomon/ssd130x.c
parent708d3e7aeec1cfd53fe6b9b048e92ac3eca6c59a (diff)
downloadlinux-next-92dd8d3edf395efbe812d29dba763098885befbe.tar.gz
linux-next-92dd8d3edf395efbe812d29dba763098885befbe.zip
drm/amd/display: Fix LSDMA divide by zero
[WHY] element_size_to_bytes_per_pixel() handled only element sizes 0 to 4 and returned 0 for every other value, and an unexpected element size caused a divide by zero. [HOW] Derive the size as 1 << element_size, which matches the existing encoding, and fall back to 1 for values of 8 or more to keep the result nonzero. Reviewed-by: Austin Zheng <austin.zheng@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: George Zhang <george.zhang@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/solomon/ssd130x.c')
0 files changed, 0 insertions, 0 deletions