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

2025-06-09 Thread Anshul Dalal
On Tue Jun 10, 2025 at 1:16 AM IST, 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 ot

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

2025-06-09 Thread Mikhail Kshevetskiy
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 other available media. Unfortunately resources allocated for previous boot