summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2022-01-12 11:42:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2022-01-12 11:42:18 +0000
commita48d4d91e2840c3836c3eeb2ebf3064e6408b978 (patch)
tree34545e7ca6abcc6256f63b2ec65b11125bb22e04 /sys/arch
parent5f321958c15728bec79b71b21b4dcfe9c4a59f1c (diff)
Fix array index. Spotted by robert@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/dev/aplsmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/aplsmc.c b/sys/arch/arm64/dev/aplsmc.c
index 81bc488c139..15ab4120830 100644
--- a/sys/arch/arm64/dev/aplsmc.c
+++ b/sys/arch/arm64/dev/aplsmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aplsmc.c,v 1.2 2022/01/12 01:19:24 jsg Exp $ */
+/* $OpenBSD: aplsmc.c,v 1.3 2022/01/12 11:42:17 kettenis Exp $ */
/*
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
*
@@ -340,7 +340,7 @@ aplsmc_refresh_sensors(void *arg)
value += 273150000;
if (error) {
- sc->sc_sensors[0].flags |= SENSOR_FUNKNOWN;
+ sc->sc_sensors[i].flags |= SENSOR_FUNKNOWN;
} else {
sc->sc_sensors[i].flags &= ~SENSOR_FUNKNOWN;
sc->sc_sensors[i].value = value;