Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 3d8b1933eb1c ("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>

authored by

Guiling Deng and committed by
Helge Deller
955f0476 88084a3d

+1 -1
+1 -1
drivers/video/fbdev/core/fbmem.c
··· 511 511 512 512 while (n && (n * (logo->width + 8) - 8 > xres)) 513 513 --n; 514 - image.dx = (xres - n * (logo->width + 8) - 8) / 2; 514 + image.dx = (xres - (n * (logo->width + 8) - 8)) / 2; 515 515 image.dy = y ?: (yres - logo->height) / 2; 516 516 } else { 517 517 image.dx = 0;