[PATCH v2] env: sf: Free the old env_flash
Pratyush Yadav
p.yadav at ti.com
Thu Jun 4 15:32:16 CEST 2020
On 01/06/20 10:43PM, Jagan Teki wrote:
> env_flash is a global flash pointer, and the probe would
> happen only if env_flash is NULL, but there is no checking
> and free the pointer if is not NULL.
>
> So, this patch frees the old env_flash, and get the probed
> flash in to env_flash pointer and finally check if is not NULL.
>
> Suggested-by: Pratyush Yadav <p.yadav at ti.com>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
Reviewed-by: Pratyush Yadav <p.yadav at ti.com>
--
Regards,
Pratyush Yadav
Texas Instruments India
More information about the U-Boot
mailing list