Skip to contentSkip to conversation

env: sata: Fix saveenv issue

PATCH In review Ye Li 2 participants 2 messages Jan 7, 2019 – Jan 10, 2019

lore
Share & tools
lore

Ye Li

author
#0 lore raw

PATCH 1/1 env: sata: Fix saveenv issue

Wrong env buffer was passed into sata write function, cause the saveenv not work.

---
 env/sata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
env/sata.c +1 -1
index 59aedf4..a2ff5c6 100644
@@ -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
#1 lore raw
Quoted 4 lines · Ye Li

Wrong env buffer was passed into sata write function, cause the saveenv not work.

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>