projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35e3d2e
)
env: sata: Fix saveenv issue
author
Ye Li
<ye.li@nxp.com>
Mon, 7 Jan 2019 09:22:35 +0000
(09:22 +0000)
committer
Tom Rini
<trini@konsulko.com>
Wed, 9 Jan 2019 12:13:32 +0000
(07:13 -0500)
Wrong env buffer was passed into sata write function, cause the saveenv
not work.
Signed-off-by: Ye Li <ye.li@nxp.com>
env/sata.c
patch
|
blob
|
history
diff --git
a/env/sata.c
b/env/sata.c
index 59aedf4d76644964a3b48aa31d5b47308de44df2..a2ff5c66f7c92b3c293303b9e48328030b18cf71 100644
(file)
--- 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;
}