usb: gadget: eliminate memory leak in slp gadget
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 23 Jan 2014 10:18:36 +0000 (11:18 +0100)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:46:55 +0000 (11:46 +0900)
commitc5c6278658059fa4c0b96815a73fd7f755fed02d
tree0164eafc98ae85ef3f44b7a7c8f3e0717b73bf24
parent243436504f7fd8b973a65c23a7c9111d2fd81540
usb: gadget: eliminate memory leak in slp gadget

Free the allocated acm_function_config struct in case of error.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Change-Id: Ie935cf67beccc2071d1ecd74437cffbe6a6827b8
drivers/usb/gadget/slp.c