]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42458d4f60cc647b2f61ba3b17aa518d1a52c3a5
tree44c919d975ce34d2c7498c0814ed354a8b8c114e
parentab0b775412a5d483b2be66b801f35e32dd2c67c8
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