]> git.dujemihanovic.xyz Git - u-boot.git/commit
stm32mp: bsec: add check on null size in misc ops
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 27 Apr 2023 13:36:34 +0000 (15:36 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 16 Jun 2023 09:16:31 +0000 (11:16 +0200)
commit7b802e1acfc3a47e889afe22bdf47d1e52287cbe
tree67d5aa05aabddd5a400f3cc3bd3cf4206ef094f8
parent6bdef5b76757f192251d34e4c7330be9bf14f605
stm32mp: bsec: add check on null size in misc ops

Add a protection in misc bsec ops for request with null size.

For example OP-TEE error occurs when get_eth_nb() return 0 in
setup_mac_address() for unknown part number because U-Boot read 0 OTPs.

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