Re: [PATCH 3/5] efi_memory: avoid possible null pointer dereference

2024-07-31 Thread Ilias Apalodimas
On Wed, 31 Jul 2024 at 09:19, Heinrich Schuchardt wrote: > > On 7/30/24 13:11, Sughosh Ganu wrote: > > 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 corr

Re: [PATCH 3/5] efi_memory: avoid possible null pointer dereference

2024-07-30 Thread Heinrich Schuchardt
On 7/30/24 13:11, Sughosh Ganu wrote: 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 Fixes: 7b05667ce239 (

Re: [PATCH 3/5] efi_memory: avoid possible null pointer dereference

2024-07-30 Thread Simon Glass
On Tue, 30 Jul 2024 at 05:11, Sughosh Ganu wrote: > > Populate the previous memory descriptor node pointer only after it's its > 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 G

[PATCH 3/5] efi_memory: avoid possible null pointer dereference

2024-07-30 Thread Sughosh Ganu
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 --- lib/efi_loader/efi_memory.c | 3 ++- 1 file changed, 2 ins