diff options
author | Ye Li <ye.li@nxp.com> | 2017-05-08 04:32:02 -0500 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-05-08 04:45:34 -0500 |
commit | 0fe7573cffcb50d6bcb401f644cc37f5af28b388 (patch) | |
tree | 0dadf70429b4a5d7407e77c29806c0ef0f3b8eb0 /common | |
parent | ab3e75aca829d5bfb998ce3434b419139b7ca7c8 (diff) | |
download | u-boot-imx-0fe7573cffcb50d6bcb401f644cc37f5af28b388.zip u-boot-imx-0fe7573cffcb50d6bcb401f644cc37f5af28b388.tar.gz u-boot-imx-0fe7573cffcb50d6bcb401f644cc37f5af28b388.tar.bz2 |
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/env_sata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_sata.c b/common/env_sata.c index b0cee35..ed90724 100644 --- a/common/env_sata.c +++ b/common/env_sata.c @@ -79,7 +79,7 @@ int saveenv(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; } |