diff options
| author | Ye Li <[email protected]> | 2019-01-07 09:22:35 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-01-09 07:13:32 -0500 |
| commit | 17be909a1b67e919de6fc20b23f35c66a4cdf4c6 (patch) | |
| tree | d7734ce6cae103d8e783f2068ae1f4c40edc3253 | |
| parent | 35e3d2e8a30321195e4f5cd8aafba6aefe818b3d (diff) | |
env: sata: Fix saveenv issue
Wrong env buffer was passed into sata write function, cause the saveenv
not work.
Signed-off-by: Ye Li <[email protected]>
| -rw-r--r-- | env/sata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/env/sata.c b/env/sata.c index 59aedf4d766..a2ff5c66f7c 100644 --- a/env/sata.c +++ b/env/sata.c @@ -65,7 +65,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; } |
