]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: phytec: imx8m_som_detection: fix uninitialized pointer bug
authorYannic Moog <y.moog@phytec.de>
Wed, 20 Dec 2023 08:45:33 +0000 (09:45 +0100)
committerFabio Estevam <festevam@denx.de>
Wed, 20 Dec 2023 18:04:46 +0000 (15:04 -0300)
commitda37f78525dc8a87a71f9e8d61eb891ba028eaec
tree49ce95caf4ad2fc8482715b5281e0d7a6e7b3b07
parente2be177c8511580bab3c368e8b173135471b671e
board: phytec: imx8m_som_detection: fix uninitialized pointer bug

Pointer in phytec_imx8m_detect was accessed without checking it first.
Fix this by moving the pointer check in front of any accesses.

Signed-off-by: Yannic Moog <y.moog@phytec.de>
board/phytec/common/imx8m_som_detection.c