]> Gentwo Git Trees - linux/.git/commit
fbdev: Fix logic error in "offb" name match
authorFinn Thain <fthain@linux-m68k.org>
Wed, 8 Oct 2025 22:56:25 +0000 (09:56 +1100)
committerHelge Deller <deller@gmx.de>
Thu, 9 Oct 2025 22:31:13 +0000 (00:31 +0200)
commit15df28699b28d6b49dc305040c4e26a9553df07a
tree593e4150f565632ef7117226b27bf382ba5b92a9
parent3637d34b35b287ab830e66048841ace404382b67
fbdev: Fix logic error in "offb" name match

A regression was reported to me recently whereby /dev/fb0 had disappeared
from a PowerBook G3 Series "Wallstreet". The problem shows up when the
"video=ofonly" parameter is passed to the kernel, which is what the
bootloader does when "no video driver" is selected. The cause of the
problem is the "offb" string comparison, which got mangled when it got
refactored. Fix it.

Cc: stable@vger.kernel.org
Fixes: 93604a5ade3a ("fbdev: Handle video= parameter in video/cmdline.c")
Reported-and-tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/fb_cmdline.c