Minor bootflag.c fix
PATCH 1/1 Minor bootflag.c fix
Without this patch, bootflag.c misleadingly reports an invalid value read from CMOS RAM if SBF was not enabled.
The patch:
arch/i386/kernel/bootflag.c +4 -1
@@ -128,7 +128,10 @@static void __init sbf_bootup (void ) { -u8 v =sbf_read (); +u8 v; +if (sbf_port ==-1 ) +return ; + v =sbf_read ();if (!sbf_value_valid (v))printk (KERN_WARNING "SBF: Simple boot flag value 0x%x read from CMOS RAM was invalid\n" ,v); v &= ~SBF_RESERVED ;