From 0fe7573cffcb50d6bcb401f644cc37f5af28b388 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Mon, 8 May 2017 04:32:02 -0500 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 --- common/env_sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/env_sata.c b/common/env_sata.c index b0cee35a60..ed90724477 100644 --- a/common/env_sata.c +++ b/common/env_sata.c @@ -79,7 +79,7 @@ int saveenv(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.17.1