Re: [PATCH] common: fix: add NULL checks for malloc_cache_aligned in

2025-02-11 Thread Tom Rini
On Fri, 07 Feb 2025 00:55:21 +0300, Anton Moryakov wrote: > - Check return value of malloc_cache_aligned for presskey and sha. > - Return -ENOMEM if memory allocation fails. > - Free allocated memory in error paths." > > Triggers found by static analyzer Svace. > > > [...] Applied to u-boot/ne

[PATCH] common: fix: add NULL checks for malloc_cache_aligned in

2025-02-06 Thread Anton Moryakov
- Check return value of malloc_cache_aligned for presskey and sha. - Return -ENOMEM if memory allocation fails. - Free allocated memory in error paths." Triggers found by static analyzer Svace. Signed-off-by: Anton Moryakov --- common/autoboot.c | 5 + 1 file changed, 5 insertions(+) diff