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)
This commit is contained in:
Ye Li 2018-03-22 22:41:44 -07:00
parent 6220bb6fb4
commit dbb414245b
1 changed files with 1 additions and 1 deletions

2
env/sata.c vendored
View File

@ -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;
}