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 10:34:22 +0000 (12:34 +0200)
commitaf3aaee08df8127422e03e5e1291f91cbb5d4f09
treee9525154f3206fafea5e2683c2270ce352d0c04f
parentdc235db7b79a352d07d62e8757ad856dbf1564c1
parisc: fbdev/stifb: Align graphics memory size to 4MB

commit aca7c13d3bee81a968337a5515411409ae9d095d 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