[PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y

Zev Weiss zev at bewilderbeest.net
Tue Mar 5 11:28:35 AEDT 2024


On Sat, Mar 02, 2024 at 12:19:07AM PST, Zev Weiss wrote:
>On Mon, Feb 26, 2024 at 04:56:06PM PST, baneric926 at gmail.com wrote:

<snip>

>
>>+
>>+	fanin_cnt = of_property_count_u8_elems(child, "tach-ch");
>>+	if (fanin_cnt < 1)
>
>fanin_cnt < 1 || fanin_cnt >= NCT7363_PWM_COUNT
>

Er, off by one -- just '>' rather than '>=' there I realize now.


Zev



More information about the openbmc mailing list