]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: fbdev/stifb: Align graphics memory size to 4MB
authorHelge Deller <deller@gmx.de>
Fri, 14 Oct 2022 08:13:55 +0000 (10:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:15 +0000 (13:22 +0200)
commitfceb80618997efda50dfe13704e2458f0b83c447
tree45780ecf07d6d54fbf67adb3d6f3ad72efbf902d
parent1023e34747af7823ea0dcc6c98f44f005bb25795
parisc: fbdev/stifb: Align graphics memory size to 4MB

commit 035d10dace7756cecee7436e1c0941be4e9e4029 upstream.

Independend of the current graphics resolution, adjust the reported
graphics card memory size to the next 4MB boundary.
This fixes the fbtest program which expects a naturally aligned size.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/fbdev/stifb.c