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.opasiak@xxxxxxxxxxx> --- src/gadget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gadget.c b/src/gadget.c index 5568486..40da70f 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html