usb: musb: musb_gadget: fix resource leakage in error path
authorRahul Ruikar <rahul.ruikar@gmail.com>
Sat, 2 Oct 2010 06:35:48 +0000 (01:35 -0500)
committerFelipe Balbi <balbi@ti.com>
Fri, 5 Nov 2010 11:43:14 +0000 (13:43 +0200)
commite2c3404523c5366c6cc1099d3237d363254adde0
tree36a6a04dd5420819299f3c9c092dc39cdbf97943
parent9001d80df9b1db946ef5d0fb52c974d74c567b86
usb: musb: musb_gadget: fix resource leakage in error path

In function musb_gadget_setup() call put_device()
when device_register() fails.

Signed-off-by: Rahul Ruikar <rahul.ruikar@gmail.com>
Acked-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c