bootstd: rauc: Don't null bootflow->bootmeth_priv
authorMartin Schwan <m.schwan@phytec.de>
Wed, 13 Aug 2025 11:54:06 +0000 (13:54 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 21 Aug 2025 21:05:04 +0000 (15:05 -0600)
Don't null bootflow->bootmeth_priv, as the private struct is freed later
on by the bootflow.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Tested-by: Wadim Egorov <w.egorov@phytec.de>
boot/bootmeth_rauc.c

index a27c85c..c8efdce 100644 (file)
@@ -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;
        }