android_kernel_xiaomi_sm7250/drivers/video
Zheyu Ma 1aea36a62f video: fbdev: sm712fb: Fix crash in smtcfb_write()
[ Upstream commit 4f01d09b2bbfbcb47b3eb305560a7f4857a32260 ]

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-15 14:14:56 +02:00
..
backlight video: backlight: Drop maximum brightness override for brightness zero 2021-11-26 11:36:18 +01:00
console vgacon: Propagate console boot parameters before calling `vc_resize' 2021-12-08 08:50:14 +01:00
fbdev video: fbdev: sm712fb: Fix crash in smtcfb_write() 2022-04-15 14:14:56 +02:00
logo
display_timing.c
hdmi.c
Kconfig
Makefile
of_display_timing.c
of_videomode.c
vgastate.c
videomode.c