On Wed, Oct 06, 2021 at 06:29:53PM +0200, Marek Vasut wrote:

> If the environment is stored in eMMC hardware boot partition, the environment
> driver first stores the currently selected eMMC boot partition, then does the
> requested operation, and then restores the original boot partition settings.
> In case the environment operation fails, the boot partition settings are also
> restored.
> 
> The 'env erase' implementation in the MMC environment driver lacks the path
> which restores the boot partition. This could lead to various failure modes,
> like the system boots the wrong copy of bootloader etc. Fix this by filling
> in the missing restoration path.
> 
> Signed-off-by: Marek Vasut <[email protected]>
> Cc: Fabio Estevam <[email protected]>
> Cc: Jaehoon Chung <[email protected]>
> Cc: Peng Fan <[email protected]>
> Cc: Stefano Babic <[email protected]>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to