Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plat-stm32mp1: fix use after free in PMIC driver
Fix PMIC regulator levels arrays handling that missed a pointer reset after the buffer is freed. At runtime, pmic_list_voltages() handler function uses that reference and is expected to allocate back the buffer in case non-secure world requests voltage enumeration for the related regulator. Fixes: a7990eb ("plat-stm32mp1: set voltage list at pmic driver init") Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
- Loading branch information