Skip to content
Commit 7417cda6 authored by Yann Gautier's avatar Yann Gautier Committed by Yann Gautier
Browse files

fix(st-clock): correct stm32_clk_parse_fdt_by_name



The fdt_getprop() function sets the length to -1 if the property is not
found. We should then not use it later in stm32_clk_parse_fdt_by_name()
in that case. Directly set *nb to 0U and return 0 if the property is not
found.

Signed-off-by: default avatarYann Gautier <yann.gautier@foss.st.com>
Change-Id: I19c5c953f392cdc768e0b1f3f240fc99a73a049c
parent b8eab512
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment