Skip to content
Commit 1a744d2e authored by Anton Bondarenko's avatar Anton Bondarenko Committed by Greg Kroah-Hartman
Browse files

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: feb26ac3 ("usb: core: hub: hub_port_init lock controller instead of bus")

Signed-off-by: default avatarAnton Bondarenko <anton.bondarenko.sama@gmail.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd5ca753
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment