commit | 9017309f87eff71a24368f08470088cc2daacc63 | [log] [tgz] |
---|---|---|
author | Jagan Teki <jagan@amarulasolutions.com> | Wed May 13 16:32:42 2020 +0530 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Mon Jun 01 17:55:24 2020 +0530 |
tree | 0bee986dd7142840810e82c827da8c272669619b | |
parent | 43dab5fba2746c7d879ea9091a3a9f3b64ea7e36 [diff] |
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: Jagan Teki <jagan@amarulasolutions.com>