Fix return value check of OF_getproplen(). If "reset-gpios" is not found
authortobhe <tobhe@openbsd.org>
Sun, 13 Feb 2022 16:44:50 +0000 (16:44 +0000)
committertobhe <tobhe@openbsd.org>
Sun, 13 Feb 2022 16:44:50 +0000 (16:44 +0000)
commit0eef8ed56ac27539d12909651d28ed2224f36ad7
treeeab565430f40ba5d20bb8c5f5b27bdd4339bbc59
parent0a23802a8ab6adc2281eb28835a66e732e7bb950
Fix return value check of OF_getproplen(). If "reset-gpios" is not found
in the device tree -1 is returned, causing a panic in the following malloc
call.

ok kn@ patrick@ kettenis@
sys/arch/armv7/marvell/mvpcie.c