usb: gadget: function: Remove redundant usb_free_all_descriptors
authorPavitrakumar Managutte <pavitra1729@gmail.com>
Wed, 22 Oct 2014 13:54:58 +0000 (19:24 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 23 Oct 2014 18:57:24 +0000 (13:57 -0500)
Removed usb_free_all_descriptors in the bind functions, which
results in double-free corruption of the descriptors on error path.
The usb descriptors are allocated by usb_assign_descriptors.

Signed-off-by: Pavitrakumar Managutte <pavitra1729@gmail.com>
Reviewed-by: Robert Baldyga <r.baldyga@samsung.com>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found