Afther creation of configuration its attributes left uninitialized. Config attrs should be initialized with default values provided by kernel. Change-Id: Iec65db1123bfe9aef81d42539fa0f6427383cfbc 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 e8527b2..341af61 100644 --- a/src/usbg.c +++ b/src/usbg.c @@ -715,6 +715,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