fbdev: core: Fix ubsan warning in pixel_to_pat

[ Upstream commit aad1d99bea ]

It could be triggered on 32 bit big endian machines at 32 bpp in the
pattern realignment. In this case just return early as the result is
an identity.

Signed-off-by: Zsolt Kajtar <soci@c64.rulez.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Zsolt Kajtar 2025-08-21 04:42:48 +02:00 • committed by Greg Kroah-Hartman
commit f3964e93e3