artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4582e29
)
Fix array index. Spotted by robert@
author
kettenis
<kettenis@openbsd.org>
Wed, 12 Jan 2022 11:42:17 +0000
(11:42 +0000)
committer
kettenis
<kettenis@openbsd.org>
Wed, 12 Jan 2022 11:42:17 +0000
(11:42 +0000)
sys/arch/arm64/dev/aplsmc.c
patch
|
blob
|
history
diff --git
a/sys/arch/arm64/dev/aplsmc.c
b/sys/arch/arm64/dev/aplsmc.c
index
81bc488
..
15ab412
100644
(file)
--- 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;