Commit 17be909a1b67e919de6fc20b23f35c66a4cdf4c6
Committed by
Tom Rini
1 parent
35e3d2e8a3
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
env/sata.c
... | ... | @@ -65,7 +65,7 @@ |
65 | 65 | return 1; |
66 | 66 | |
67 | 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 | 69 | puts("failed\n"); |
70 | 70 | return 1; |
71 | 71 | } |