On Tue, 01 Sep 2026 15:50:35 +0530, Naveen Kumar Chaudhary wrote:

> If the malloc() for the UPL handoff structure failed, ret was checked
> while still uninitialized, leading to undefined behavior: either a bogus
> error code was returned or, if ret happened to be zero, gd_set_upl() was
> called with a NULL pointer. Bail out with -ENOMEM on allocation failure
> and only read ret after upl_read_handoff() has set it.
> 
> 
> [...]

Applied to u-boot/next, thanks!

[1/1] board_f: fix use of uninitialized variable in initf_upl()
      commit: be8f96dbaa5e7443911ac7bd87dfd83e20af0623
-- 
Tom


Reply via email to