Skip to content
Commit c8cbf170 authored by Jagan Teki's avatar Jagan Teki
Browse files

env: sf: Free the old env_flash



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.

Cc: Simon Glass <sjg@chromium.org>
Cc: Vignesh R <vigneshr@ti.com>
Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent da37b539
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment