[PATCH upstream 3/4] state: fix state is not saved when string variable is changed

Stefan Lengfeld s.lengfeld at phytec.de
Wed Nov 2 00:54:29 PDT 2016


The dirty flag was not set properly.

Signed-off-by: Stefan Lengfeld <s.lengfeld at phytec.de>
---
 common/state/state_variables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/state/state_variables.c b/common/state/state_variables.c
index 1e37856..fd072a0 100644
--- a/common/state/state_variables.c
+++ b/common/state/state_variables.c
@@ -383,7 +383,7 @@ static int state_string_set(struct param_d *p, void *priv)
 	if (ret)
 		return ret;
 
-	return state_set_dirty(p, sv->state);
+	return state_set_dirty(p, sv);
 }
 
 static int state_string_get(struct param_d *p, void *priv)
-- 
1.9.1




More information about the barebox mailing list