patch "USB: core: fix device node leak" added to usb-testing
Subsystems (2)
This is a note to let you know that I've just added the patch titled
USB: core: fix device node leak
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-testing branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will be merged to the usb-next branch sometime soon, after it passes testing, and the merge window is open.
If you have any questions about this process, please let me know.
Quoted 1 line
From
e271b2c909a22a2c13b2d5f77f2ce0091b74540cMon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Tue, 6 Jun 2017 17:58:58 +0200
Subject: USB: core: fix device node leak
Make sure to release any OF device-node reference taken when creating the USB device.
Note that we currently do not hold a reference to the root hub device-tree node (i.e. the parent controller node).
--- drivers/usb/core/usb.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/core/usb.c +2 -0
@@ -416,6 +416,8 @@ static void usb_release_dev(struct device *dev)usb_destroy_configuration (udev);usb_release_bos_descriptor (udev); +if (udev->parent) +of_node_put (dev->of_node);usb_put_hcd (hcd);kfree (udev->product);kfree (udev->manufacturer);
Signature · 1 line
2.13.1