All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] fw_env: Fix double free
@ 2019-04-17 14:56 Björn Stenberg
  2019-04-27 14:47 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Björn Stenberg @ 2019-04-17 14:56 UTC (permalink / raw)
  To: u-boot

addr0 is being freed twice, leading to segmentation fault

Signed-off-by: Björn Stenberg <bjorn@haxx.se>
---
 tools/env/fw_env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index a5d75958e1..1ed0f7e9cb 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -1566,7 +1566,7 @@ int fw_env_open(struct env_opts *opts)
  free(addr0);

  if (addr1)
- free(addr0);
+ free(addr1);

  return ret;
 }
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] fw_env: Fix double free
  2019-04-17 14:56 [U-Boot] [PATCH] fw_env: Fix double free Björn Stenberg
@ 2019-04-27 14:47 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-04-27 14:47 UTC (permalink / raw)
  To: u-boot

On Wed, Apr 17, 2019 at 04:56:54PM +0200, Björn Stenberg wrote:

> addr0 is being freed twice, leading to segmentation fault
> 
> Signed-off-by: Björn Stenberg <bjorn@haxx.se>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190427/5a7eb823/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-27 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-17 14:56 [U-Boot] [PATCH] fw_env: Fix double free Björn Stenberg
2019-04-27 14:47 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.