Re: [PATCH v2 3/3] common/spl: improve error handling in spl_fit

2025-06-09 Thread Mikhail Kshevetskiy
On 07.06.2025 11:33, Jonas Karlman wrote: > Hi Mikhail, > > On 2025-06-07 00:31, Mikhail Kshevetskiy wrote: >> This fix a possible NULL pointer dereference. >> >> There is also a risk of memory leaking within the same portion of code. >> The leak will happen if loaded image is bad or damaged. In

Re: [PATCH v2 3/3] common/spl: improve error handling in spl_fit

2025-06-07 Thread Jonas Karlman
Hi Mikhail, On 2025-06-07 00:31, Mikhail Kshevetskiy wrote: > This fix a possible NULL pointer dereference. > > There is also a risk of memory leaking within the same portion of code. > The leak will happen if loaded image is bad or damaged. In this case > u-boot-spl will try booting from the oth