env: sata: Fix saveenv issue
PATCH 1/1 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]>
--- env/sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
env/sata.c +1 -1
@@ -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 ; }
Signature · 1 line
2.7.4
Quoted 4 lines · Ye Li
Wrong env buffer was passed into sata write function, cause the saveenv not work.
Signed-off-by Ye Li <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190109/76868d8e/attachment.sig>