fbdev: stifb: Provide valid pixelclock and add fb_check_var() checks
authorHelge Deller <deller@gmx.de>
Thu, 16 Mar 2023 10:38:19 +0000 (11:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:31:35 +0000 (13:31 +0100)
commitcb72b4bd81b9b012cb8d774469f932fd875923db
tree970875529deea31c23e01271669b54aa585eb70b
parente9cdd3f722b64e3a4c3fad308b54b9b567fc99a6
fbdev: stifb: Provide valid pixelclock and add fb_check_var() checks

commit 203873a535d627c668f293be0cb73e26c30f9cc7 upstream.

Find a valid modeline depending on the machine graphic card
configuration and add the fb_check_var() function to validate
Xorg provided graphics settings.

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