summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2021-03-26 22:54:41 +0000
committerkn <kn@openbsd.org>2021-03-26 22:54:41 +0000
commit4b78f41ac76a6cabd33b927b0f8faedb21c7197f (patch)
tree8b7880bf2a7576fb9673c806b68f707d9828deb2 /lib/libssl/ssl_lib.c
parentPush kernel lock within rtable_add(9) and rework it to return 0 in the (diff)
downloadwireguard-openbsd-4b78f41ac76a6cabd33b927b0f8faedb21c7197f.tar.xz
wireguard-openbsd-4b78f41ac76a6cabd33b927b0f8faedb21c7197f.zip
Flag sensors as invalid on bogus reads
Follow-up to the previous commit: This driver continues to report stale hw.sensors values when reading them fails, which can easily be observed on a Pinebook Pro after plugging in the AC cable, causing the hw.sensors.cwfg0.raw0 (battery remaining minutes) value to jump considerably one or two times before stalling and becoming incoherent with the rest. Flag sensors invalid upfront in apm's fashion and mark them OK iff they yield valid values; this is what other drivers such as rktemp(4) do, but the consequence/intention of SENSOR_FINVALID is sysctl(8) and systat(8) skipping such sensors (until AC gets plugged off again). OK patrick
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions