Don't null bootflow->bootmeth_priv, as the private struct is freed later
on by the bootflow.

Signed-off-by: Martin Schwan <m.sch...@phytec.de>
---
 boot/bootmeth_rauc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/boot/bootmeth_rauc.c b/boot/bootmeth_rauc.c
index 
a27c85c4ff07b88fd67d6a542c622840245dd397..c8efdce75b9134d1c329be40a1eecc57977ffff1
 100644
--- a/boot/bootmeth_rauc.c
+++ b/boot/bootmeth_rauc.c
@@ -193,7 +193,6 @@ static int distro_rauc_read_bootflow(struct udevice *dev, 
struct bootflow *bflow
                }
                free(priv);
                free(boot_order_copy);
-               bflow->bootmeth_priv = NULL;
                return ret;
        }
 

-- 
2.50.1

Reply via email to