]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(st-clock): initialize pllcfg table
authorYann Gautier <yann.gautier@st.com>
Fri, 4 Mar 2022 10:08:47 +0000 (11:08 +0100)
committerYann Gautier <yann.gautier@st.com>
Fri, 4 Mar 2022 12:48:53 +0000 (13:48 +0100)
commit175758b2777eb6df3c4aefd79448e97e76a15272
tree2f3c4a4e472e83f2c8865174661e06ff982c64eb
parentb298d4df5efc5d7a350dc10ca10b85a91d4d46e0
fix(st-clock): initialize pllcfg table

The issue was found by Coverity:
CID 376582:    (UNINIT)
    Using uninitialized value "*pllcfg[_PLL4]" when calling
    "stm32mp1_check_pll_conf".
CID 376582:    (UNINIT)
    Using uninitialized value "*pllcfg[_PLL3]" when calling
    "stm32mp1_check_pll_conf".

Check PLL configs are valid before using pllcfg.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I49de849eaf451d0c165a8eb8555112a0a4140bbc
drivers/st/clk/stm32mp1_clk.c