]> git.baikalelectronics.ru Git - kernel.git/commit
usb: core: fix potential memory leak in error path during hcd creation
authorAnton Bondarenko <anton.bondarenko.sama@gmail.com>
Sat, 6 May 2017 23:53:46 +0000 (01:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2017 09:27:41 +0000 (11:27 +0200)
commit30fcfb5a982544d9bb4b37259b6dc6e75cf46802
treec0aa7215ebcb46d6f2db095c08976abc01636004
parentaa248d1695c64e3dab8a6dcf1a4fb181940ff4cf
usb: core: fix potential memory leak in error path during hcd creation

Free memory allocated for address0_mutex if allocation of bandwidth_mutex
failed.

Fixes: 4892a54da6e4 ("usb: core: hub: hub_port_init lock controller instead of bus")
Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c