Afther creation of configuration its attributes left uninitialized.
Config attrs should be initialized with default values provided
by kernel.

Signed-off-by: Krzysztof Opasiak <k.opas...@samsung.com>
---
 src/gadget.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gadget.c b/src/gadget.c
index d225af0..0c0b5fa 100644
--- a/src/gadget.c
+++ b/src/gadget.c
@@ -716,6 +716,8 @@ struct config *gadget_create_config(struct gadget *g, char 
*name)
                return NULL;
        }
 
+       gadget_parse_config_attrs(c);
+
        /* Insert in string order */
        if (TAILQ_EMPTY(&g->configs) ||
            (strcmp(name, TAILQ_FIRST(&g->configs)->name) < 0))
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to