* [U-Boot] [PATCH] env: sata: Fix saveenv issue
@ 2019-01-07 9:22 Ye Li
2019-01-10 2:32 ` [U-Boot] " Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Ye Li @ 2019-01-07 9:22 UTC (permalink / raw)
To: u-boot
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/sata.c b/env/sata.c
index 59aedf4..a2ff5c6 100644
--- 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;
}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] env: sata: Fix saveenv issue
2019-01-07 9:22 [U-Boot] [PATCH] env: sata: Fix saveenv issue Ye Li
@ 2019-01-10 2:32 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-01-10 2:32 UTC (permalink / raw)
To: u-boot
On Mon, Jan 07, 2019 at 09:22:35AM +0000, Ye Li wrote:
> Wrong env buffer was passed into sata write function, cause the saveenv
> not work.
>
> Signed-off-by: Ye Li <ye.li@nxp.com>
Applied to u-boot/master, thanks!
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-10 2:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-07 9:22 [U-Boot] [PATCH] env: sata: Fix saveenv issue Ye Li
2019-01-10 2:32 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.