usb: core: endpoint: Fix error path
authorRahul Ruikar <rahul.ruikar@gmail.com>
Thu, 7 Oct 2010 04:01:12 +0000 (09:31 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:06 +0000 (10:22 -0700)
commit7b3a766c7b9bce07875098cb68642df2b8f0b152
tree44c919d975ce34d2c7498c0814ed354a8b8c114e
parent93ad03d60b5b18897030038234aa2ebae8234748
usb: core: endpoint: Fix error path

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

Signed-off-by: Rahul Ruikar <rahul.ruikar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/endpoint.c