1
0
Fork 0
remarkable-linux/tools/usb/usbip/src
Shuah Khan (Samsung OSG) bc30588b8e usbip: usbip_detach: Fix memory, udev context and udev leak
[ Upstream commit d179f99a65 ]

detach_port() fails to call usbip_vhci_driver_close() from its error
path after usbip_vhci_detach_device() returns failure, leaking memory
allocated in usbip_vhci_driver_open() and holding udev_context and udev
references. Fix it to call usbip_vhci_driver_close().

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-03 07:50:26 +02:00
..
Makefile.am License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
usbip.c usbip: Fix implicit fallthrough warning 2017-03-17 13:16:56 +09:00
usbip.h usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00
usbip_attach.c usbip: auto retry for concurrent attach 2017-08-31 18:08:45 +02:00
usbip_bind.c usbip: prevent bind loops on devices attached to vhci_hcd 2018-02-03 17:39:20 +01:00
usbip_detach.c usbip: usbip_detach: Fix memory, udev context and udev leak 2018-08-03 07:50:26 +02:00
usbip_list.c usbip: list: don't list devices attached to vhci_hcd 2018-02-03 17:39:20 +01:00
usbip_network.c usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00
usbip_network.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
usbip_port.c usbip: adding names db to port operation 2016-05-03 14:32:07 -07:00
usbip_unbind.c usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00
usbipd.c tools/usbip: fixes build with musl libc toolchain 2018-03-19 08:42:53 +01:00
utils.c usbip: fix usbip bind writing random string after command in match_busid 2018-01-02 20:31:13 +01:00
utils.h usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00