From dbb414245b73f29666622f8c07da48ac797eb848 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Thu, 22 Mar 2018 22:41:44 -0700 Subject: [PATCH] MLK-14828 env_sata: Fix SATA saveenv issue Wrong env buffer was passed into sata write function, so the saveenv can't work. Fix this issue. Signed-off-by: Ye Li (cherry picked from commit 0fe7573cffcb50d6bcb401f644cc37f5af28b388) --- env/sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/sata.c b/env/sata.c index 4bfe0119df..a537b22ce7 100644 --- a/env/sata.c +++ b/env/sata.c @@ -68,7 +68,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; }