From: Vyacheslav Cherkashin Date: Thu, 24 Oct 2013 09:08:59 +0000 (+0400) Subject: [FIX] does not apply config before start X-Git-Tag: accepted/tizen/mobile/20160407.001200~360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=306828f416bc6a0d5f1cfa6dc96b6812a6973ae6;p=platform%2Fkernel%2Fswap-modules.git [FIX] does not apply config before start until running instrumentation Change-Id: I3dd73d749ded4b70b1e55578888e40e50ec610e6 Signed-off-by: Vyacheslav Cherkashin --- diff --git a/parser/msg_cmd.c b/parser/msg_cmd.c index fb3b921..f8e9c89 100644 --- a/parser/msg_cmd.c +++ b/parser/msg_cmd.c @@ -130,6 +130,7 @@ int msg_config(struct msg_buf *mb) { int ret = 0; struct conf_data *conf; + enum status_type st; conf = create_conf_data(mb); if (conf == NULL) @@ -141,9 +142,12 @@ int msg_config(struct msg_buf *mb) goto free_conf_data; } - /* TODO implement the processing */ - set_config(conf); + st = usm_get_status(); + if (st == ST_ON) + set_config(conf); + save_config(conf); + usm_put_status(st); free_conf_data: destroy_conf_data(conf);