commit | 7aa0addc42ef1674a7baaf9d0428db943c3f2e5f | [log] [tgz] |
---|---|---|
author | Sughosh Ganu <sughosh.ganu@linaro.org> | Tue Jul 30 16:41:30 2024 +0530 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Wed Jul 31 09:54:42 2024 +0200 |
tree | dab29b9a140a2e8687e12b1ce3689146a8c2361f | |
parent | 22f893047db9560400415316256959ed29167d04 [diff] |
efi_memory: avoid possible null pointer dereference Populate the previous memory descriptor node pointer only after it's parent struct has been initialised. The compiler fixes this logic to do the right thing, but it is better to have correct code in place. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>