]> git.baikalelectronics.ru Git - kernel.git/commit
usb: host: ohci-ppc-of: Fix refcount leak bug
authorLiang He <windhl@126.com>
Fri, 17 Jun 2022 03:46:37 +0000 (11:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jun 2022 14:38:53 +0000 (16:38 +0200)
commitfbcfb857b47404aec91b8957a59dacb2098f9fb7
tree716f913a9914030369cb4c266050398b6d45ed45
parent969bdfa0db77b0416cd2176a65da0021d39335c5
usb: host: ohci-ppc-of: Fix refcount leak bug

In ohci_hcd_ppc_of_probe(), of_find_compatible_node() will return
a node pointer with refcount incremented. We should use of_node_put()
when it is not used anymore.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220617034637.4003115-1-windhl@126.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-ppc-of.c