]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: fbmem: Fix logo center image dx issue
authorGuiling Deng <greens9@163.com>
Tue, 28 Jun 2022 16:36:41 +0000 (09:36 -0700)
committerHelge Deller <deller@gmx.de>
Wed, 6 Jul 2022 15:04:47 +0000 (17:04 +0200)
commit89183a51fc94ae05cf2107934fc63646b2e23309
tree918678538d1317b1b74e6139421787ac149816e9
parent17aa3251ca69d5289712bca6b152158fdac13263
fbdev: fbmem: Fix logo center image dx issue

Image.dx gets wrong value because of missing '()'.

If xres == logo->width and n == 1, image.dx = -16.

Signed-off-by: Guiling Deng <greens9@163.com>
Fixes: 4e62259d704c ("fbdev: fbmem: add config option to center the bootup logo")
Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/fbmem.c