Re: [PATCH 1/1] tools/fdt_add_pubkey: error handling in add_pubkey

2023-07-31 Thread Simon Glass
Hi, On Mon, 31 Jul 2023 at 02:16, Ivan Mikhaylov wrote: > > On Sun, 2023-07-30 at 10:15 +0200, Heinrich Schuchardt wrote: > > * If info is NULL, do not dereference it. > > * If mmap fails, print an error message. > > > > Fixes: 30238e99619c ("tools: add fdt_add_pubkey") > > Signed-off-by: Heinric

Re: [PATCH 1/1] tools/fdt_add_pubkey: error handling in add_pubkey

2023-07-31 Thread Ivan Mikhaylov
On Sun, 2023-07-30 at 10:15 +0200, Heinrich Schuchardt wrote: > * If info is NULL, do not dereference it. > * If mmap fails, print an error message. > > Fixes: 30238e99619c ("tools: add fdt_add_pubkey") > Signed-off-by: Heinrich Schuchardt > > --- >  tools/fdt_add_pubkey.c | 6 -- >  1 file ch

[PATCH 1/1] tools/fdt_add_pubkey: error handling in add_pubkey

2023-07-30 Thread Heinrich Schuchardt
* If info is NULL, do not dereference it. * If mmap fails, print an error message. Fixes: 30238e99619c ("tools: add fdt_add_pubkey") Signed-off-by: Heinrich Schuchardt --- tools/fdt_add_pubkey.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/fdt_add_pubkey.c b/to