aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYe Li2019-01-07 03:22:35 -0600
committerTom Rini2019-01-09 06:13:32 -0600
commit17be909a1b67e919de6fc20b23f35c66a4cdf4c6 (patch)
treed7734ce6cae103d8e783f2068ae1f4c40edc3253
parent35e3d2e8a30321195e4f5cd8aafba6aefe818b3d (diff)
downloadu-boot-17be909a1b67e919de6fc20b23f35c66a4cdf4c6.tar.gz
u-boot-17be909a1b67e919de6fc20b23f35c66a4cdf4c6.tar.xz
u-boot-17be909a1b67e919de6fc20b23f35c66a4cdf4c6.zip
env: sata: Fix saveenv issue
Wrong env buffer was passed into sata write function, cause the saveenv not work. Signed-off-by: Ye Li <ye.li@nxp.com>
-rw-r--r--env/sata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/sata.c b/env/sata.c
index 59aedf4d76..a2ff5c66f7 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -65,7 +65,7 @@ static int env_sata_save(void)
65 return 1; 65 return 1;
66 66
67 printf("Writing to SATA(%d)...", env_sata); 67 printf("Writing to SATA(%d)...", env_sata);
68 if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) { 68 if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, (u_char *)env_new)) {
69 puts("failed\n"); 69 puts("failed\n");
70 return 1; 70 return 1;
71 } 71 }