linux-stable/drivers/video
Zheyu Ma 0ec7466742 video: fbdev: sm712fb: Fix crash in smtcfb_write()
[ Upstream commit 4f01d09b2b ]

When the sm712fb driver writes three bytes to the framebuffer, the
driver will crash:

    BUG: unable to handle page fault for address: ffffc90001ffffff
    RIP: 0010:smtcfb_write+0x454/0x5b0
    Call Trace:
     vfs_write+0x291/0xd60
     ? do_sys_openat2+0x27d/0x350
     ? __fget_light+0x54/0x340
     ksys_write+0xce/0x190
     do_syscall_64+0x43/0x90
     entry_SYSCALL_64_after_hwframe+0x44/0xae

Fix it by removing the open-coded endianness fixup-code.

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:08:23 +02:00
..
backlight backlight: pwm_bl: Improve bootloader/kernel device handover 2021-09-22 11:45:23 +02:00
console vgacon: Propagate console boot parameters before calling `vc_resize' 2021-12-08 08:46:56 +01:00
fbdev video: fbdev: sm712fb: Fix crash in smtcfb_write() 2022-04-20 09:08:23 +02:00
logo
Kconfig
Makefile
display_timing.c
hdmi.c video/hdmi: Fix AVI bar unpack 2019-12-17 20:39:42 +01:00
of_display_timing.c
of_videomode.c
vgastate.c
videomode.c