]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: Fix missing of_node_put() in omap2430_probe
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 9 Mar 2022 11:10:33 +0000 (11:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Apr 2022 17:20:28 +0000 (19:20 +0200)
commit22f0860e0d42b65908b9efc0e19bfd6d6e8a835d
tree011dd5749c3041d739ab82213f60950b4e14b72a
parenta5907d125c99a0d8bc86c897f13bc780291facbf
usb: musb: Fix missing of_node_put() in omap2430_probe

The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.

Fixes: 55793d272587 ("usb: musb: omap2430: Don't use omap_get_control_dev()")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220309111033.24487-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/omap2430.c