commit | e2c3404523c5366c6cc1099d3237d363254adde0 | [log] [tgz] |
---|---|---|
author | Rahul Ruikar <rahul.ruikar@gmail.com> | Sat Oct 02 01:35:48 2010 -0500 |
committer | Felipe Balbi <balbi@ti.com> | Fri Nov 05 13:43:14 2010 +0200 |
tree | 36a6a04dd5420819299f3c9c092dc39cdbf97943 | |
parent | 9001d80df9b1db946ef5d0fb52c974d74c567b86 [diff] |
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>