]> git.baikalelectronics.ru Git - kernel.git/commit
usb: renesas: Fix refcount leak bug
authorLiang He <windhl@126.com>
Sat, 18 Jun 2022 02:32:05 +0000 (10:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jun 2022 14:39:03 +0000 (16:39 +0200)
commit4b269bff7669aa9cfa8b07b6bb9af630645aeb02
treec8b0b2a9d6d1621ec0b250127d8821f6c1f17a5e
parent408e26e3a5f2dcd57a75859c874f3ca23ba77890
usb: renesas: Fix refcount leak bug

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

Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220618023205.4056548-1-windhl@126.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/renesas_usbhs/rza.c