OF_getproplen() returns -1 on error, so don't store result in size_t
authorjsg <jsg@openbsd.org>
Mon, 14 Feb 2022 12:54:43 +0000 (12:54 +0000)
committerjsg <jsg@openbsd.org>
Mon, 14 Feb 2022 12:54:43 +0000 (12:54 +0000)
commit6db93d98ab6b126faecda9846368016239097d4c
tree8bb57d335389ca9929896a6c02a6982a120f661c
parent49e9d6d1f8185d923d4aff9724369e39339492ce
OF_getproplen() returns -1 on error, so don't store result in size_t
spotted by and ok tb@, ok tobhe@
sys/dev/ofw/ofw_regulator.c