libusbgx: Add missing config attrs parsing while new config creation.
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Wed, 11 Dec 2013 13:10:13 +0000 (14:10 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 19:33:56 +0000 (20:33 +0100)
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@samsung.com>
[Port from libusbg and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
src/usbg.c

index 6f752a9..ab9f253 100644 (file)
@@ -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))