]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb:g_dnl: Replace static usb_configuration structure with dynamically allocated one
authorLukasz Majewski <l.majewski@samsung.com>
Tue, 8 Oct 2013 12:30:40 +0000 (14:30 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 20 Oct 2013 21:42:40 +0000 (23:42 +0200)
commit7b412ab31fe7957eabbfa86c131679fb244d7079
tree5b39b7cc22a92e8ef80ca6cf536c811392bc2878
parentd42782631d59ea12251629bb827f725ef4dfddf6
usb:g_dnl: Replace static usb_configuration structure with dynamically allocated one

When the usb_configuration structure is declared as static, it is very
hard to assure, that relevant fields (as e.g. config->interfaces[]) are
cleared out before new call to g_dnl related functions.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/gadget/g_dnl.c