Zheyu Ma fb791514ac 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-20 09:06:40 +02:00
..
2016-09-27 11:43:24 +03:00
2014-07-01 13:32:30 +03:00
2018-02-25 11:05:44 +01:00
2015-06-23 16:23:30 -07:00
2016-02-26 13:28:35 +02:00
2016-02-26 13:28:35 +02:00
2016-05-27 15:26:11 -07:00
2015-10-08 12:19:39 +03:00
2021-03-03 17:44:34 +01:00
2016-08-30 11:57:21 +03:00
2016-02-26 12:16:58 +02:00
2016-02-26 13:28:35 +02:00
2015-11-10 10:00:09 -08:00