Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: efi: fixed typo in efi_procfs()

After the first check of the value of the "eft" variable
it does not change, it is obvious that a copy-paste
error was made here and the value of variable "alm"
should be checked here.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 501385f2a783 ("rtc: efi: add efi_procfs in efi_rtc_ops")
Signed-off-by: Maxim Korotkov <korotkov.maxim.s@gmail.com>
Link: https://lore.kernel.org/r/20231006090444.306729-1-korotkov.maxim.s@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Maxim Korotkov and committed by
Alexandre Belloni
f5f4c982 3c8bdc20

+1 -1
+1 -1
drivers/rtc/rtc-efi.c
··· 227 227 enabled == 1 ? "yes" : "no", 228 228 pending == 1 ? "yes" : "no"); 229 229 230 - if (eft.timezone == EFI_UNSPECIFIED_TIMEZONE) 230 + if (alm.timezone == EFI_UNSPECIFIED_TIMEZONE) 231 231 seq_puts(seq, "Timezone\t: unspecified\n"); 232 232 else 233 233 /* XXX fixme: convert to string? */