summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-03-22 22:41:44 -0700
committerYe Li <ye.li@nxp.com>2018-04-26 02:26:36 -0700
commitdbb414245b73f29666622f8c07da48ac797eb848 (patch)
tree8286c04b53358cc2a156ede2bd78f67c392754d4 /env
parent6220bb6fb43aa485a10f96fb6ade864b3371e4ca (diff)
MLK-14828 env_sata: Fix SATA saveenv issue
Wrong env buffer was passed into sata write function, so the saveenv can't work. Fix this issue. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 0fe7573cffcb50d6bcb401f644cc37f5af28b388)
Diffstat (limited to 'env')
-rw-r--r--env/sata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/sata.c b/env/sata.c
index 4bfe0119df..a537b22ce7 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -68,7 +68,7 @@ static int env_sata_save(void)
return 1;
printf("Writing to SATA(%d)...", env_sata);
- if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) {
+ if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, (u_char *)env_new)) {
puts("failed\n");
return 1;
}