mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
usb: host: Fix refcount leak in ehci_hcd_ppc_of_probe
[ Upstream commitb5c5b13cb4
] of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes:796bcae736
("USB: powerpc: Workaround for the PPC440EPX USBH_23 errata [take 3]") Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Link: https://lore.kernel.org/r/20220602110849.58549-1-linmq006@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
59ef9bfd29
commit
b9c4a480cb
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ static int ehci_hcd_ppc_of_probe(struct platform_device *op)
|
|||
} else {
|
||||
ehci->has_amcc_usb23 = 1;
|
||||
}
|
||||
of_node_put(np);
|
||||
}
|
||||
|
||||
if (of_get_property(dn, "big-endian", NULL)) {
|
||||
|
|
Loading…
Reference in a new issue