aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/unusual_devs.h
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-10-05 18:55:34 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 10:22:04 -0700
commit319feaabb6c7ccd90da6e3207563c265da7d21ae (patch)
tree07998aec5e760ec294566b5facac1ff60d0eb6c8 /drivers/usb/storage/unusual_devs.h
parentd0cc3d4100e829d726d7c0fbf5b7b8d2146f60ba (diff)
downloadmrst-s0i3-test-319feaabb6c7ccd90da6e3207563c265da7d21ae.tar.gz
mrst-s0i3-test-319feaabb6c7ccd90da6e3207563c265da7d21ae.tar.xz
mrst-s0i3-test-319feaabb6c7ccd90da6e3207563c265da7d21ae.zip
usb: gadget: goku_udc: Fix error path
This is based on an initial patch by Rahul Ruikar. The goku_remove() function can be called before device_register() so it can call device_unregister() improperly. Also if the call to device_register() fails we need to call put_device(). As I was changing the error handling in goku_probe(), I noticed that the label was "done" but actually if the function succeeds we return earlier. I renamed the error path to "err" instead of "done." Reported-by: Rahul Ruikar <rahul.ruikar@gmail.com> Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/unusual_devs.h')
0 files changed, 0 insertions, 0 deletions