]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/draw: fix color truncation in drm_draw_fill24
authorFrancesco Valla <francesco@valla.it>
Fri, 3 Oct 2025 10:33:03 +0000 (12:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2025 14:24:35 +0000 (16:24 +0200)
commitf0edcc0ff6fd7ce51b9d9adee3f93cde3fee971c
tree7c62106a8208811c2b29ba86ee6a744fc3722db9
parent0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb
drm/draw: fix color truncation in drm_draw_fill24

[ Upstream commit 095232711f23179053ca26bcf046ca121a91a465 ]

The color parameter passed to drm_draw_fill24() was truncated to 16
bits, leading to an incorrect color drawn to the target iosys_map.
Fix this behavior, widening the parameter to 32 bits.

Fixes: 31fa2c1ca0b2 ("drm/panic: Move drawing functions to drm_draw")
Signed-off-by: Francesco Valla <francesco@valla.it>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20251003-drm_draw_fill24_fix-v1-1-8fb7c1c2a893@valla.it
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_draw.c
drivers/gpu/drm/drm_draw_internal.h