usb: host: xhci-tegra: Add missing of_node_put() in tegra_xusb_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 16 Jun 2021 04:45:18 +0000 (12:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jun 2021 13:26:40 +0000 (15:26 +0200)
commitec03554f980f917e0491aa8532aabedc9c080639
tree143b8c25c5dfef1fe3fb5eb4c9defd16755f04d9
parent9ea90e9fadb6cffb383ee23b132c36a88ee69019
usb: host: xhci-tegra: Add missing of_node_put() in tegra_xusb_probe()

This node pointer is returned by of_parse_phandle() with refcount
incremented in this function. of_node_put() on it before exitting
this function.

Fixes: 971ee247060d ("usb: xhci: tegra: Enable ELPG for runtime/system PM")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210616044519.2183826-2-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c