Skip to content

Commit f5f4c98

Browse files
ProjectMutilationalexandrebelloni
authored andcommitted
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: 501385f ("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>
1 parent 3c8bdc2 commit f5f4c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-efi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static int efi_procfs(struct device *dev, struct seq_file *seq)
227227
enabled == 1 ? "yes" : "no",
228228
pending == 1 ? "yes" : "no");
229229

230-
if (eft.timezone == EFI_UNSPECIFIED_TIMEZONE)
230+
if (alm.timezone == EFI_UNSPECIFIED_TIMEZONE)
231231
seq_puts(seq, "Timezone\t: unspecified\n");
232232
else
233233
/* XXX fixme: convert to string? */

0 commit comments

Comments
 (0)