usb: gadget: composite: Initialize config->interface
authorBenoit Goby <benoit@android.com>
Thu, 10 May 2012 08:07:58 +0000 (10:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 19:21:32 +0000 (12:21 -0700)
commit02e8161e341b4e54a4a36233f98b79763bfa3f48
tree7521e17e3fa102d185d7b497473c9618672dc167
parent51cce6fc155c4d7eea2ff975ee7c82b89332c6d9
usb: gadget: composite: Initialize config->interface

Reset config->interface in usb_add_config, as it may contain pointers to
functions from a previous session if config is removed and re-added.

Signed-off-by: Benoit Goby <benoit@android.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/composite.c