diff options
author | Johan Hovold <johan@kernel.org> | 2017-11-09 18:07:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-19 09:09:51 +0100 |
commit | 038f81410b9fbef783983224ed219e2af94d9999 (patch) | |
tree | a7cf7c3a881a0a9a085b694833257f11e1fba354 /Documentation/devicetree/bindings/serial/fsl-lpuart.txt | |
parent | 661d71fec957b2ec9b8a3768148dc13a03217f08 (diff) |
USB: ledtrig-usbport: fix of-node leak
[ Upstream commit 03310a15484ab6a8f6d91bbf7fe486b17275c09a ]
This code looks up a USB device node from a given parent USB device but
never dropped its reference to the returned node.
As only the address of the node is used for a later matching, the
reference can be dropped immediately.
Note that this trigger implementation confuses the description of the
USB device connected to a port with the port itself (which does not have
a device-tree representation).
Fixes: 4f04c210d031 ("usb: core: read USB ports from DT in the usbport LED trigger driver")
Cc: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Johan Hovold <johan@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>
Diffstat (limited to 'Documentation/devicetree/bindings/serial/fsl-lpuart.txt')
0 files changed, 0 insertions, 0 deletions