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/usbg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usbg.c b/src/usbg.c index 6f752a9..ab9f253 100644 --- a/src/usbg.c +++ b/src/usbg.c @@ -721,6 +721,8 @@ struct config *usbg_create_config(struct gadget *g, char *name) return NULL; } + usbg_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