]> git.openpandora.org Git - pandora-u-boot.git/commit
stm32mp1: Add check on syscon_get_first_range() return value
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 4 Feb 2026 10:16:08 +0000 (11:16 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 24 Feb 2026 16:44:09 +0000 (17:44 +0100)
commitac7f28523cd4fc5c01bc4a99e0ed856b32d1cf8d
treeaae58411ddbefa21119d862238dea31a893ce62e
parentab965d31a26610a5ede267f1962956c9deb9e913
stm32mp1: Add check on syscon_get_first_range() return value

syscon_get_first_range()'s return value is used as base address to perform
a read, without any checks.
In case stmp32mp_syscon is not binded, syscon_get_first_range() returns
-ENODEV which leads to a "Synchronous abort".

Add syscon_get_first_range() check on return value.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-stm32mp/stm32mp1/stm32mp13x.c