]> git.dujemihanovic.xyz Git - u-boot.git/commit
autoboot: Add check for result of malloc_cache_aligned()
authorMaks Mishin <maks.mishinfz@gmail.com>
Thu, 29 Feb 2024 22:32:11 +0000 (01:32 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 7 Mar 2024 12:59:17 +0000 (07:59 -0500)
commit606867c849b48bf10c16877507480269497e8afd
treea237b7837e1664ac0fbd91f35700d058605ff061
parent91febe80c9f2434170c6c2e866942c75372aed75
autoboot: Add check for result of malloc_cache_aligned()

Return value of a function 'malloc_cache_aligned'
is dereferenced at autoboot.c:207 without checking for NULL,
but it is usually checked for this function.

Found by RASU JSC.

Signed-off-by: Maks Mishin <maks.mishinFZ@gmail.com>
common/autoboot.c