From: Yang Yingliang Date: Wed, 16 Jun 2021 04:45:18 +0000 (+0800) Subject: usb: host: xhci-tegra: Add missing of_node_put() in tegra_xusb_probe() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ec03554f980f917e0491aa8532aabedc9c080639;p=linux.git 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 Signed-off-by: Yang Yingliang Link: https://lore.kernel.org/r/20210616044519.2183826-2-yangyingliang@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index f30030a3e51bd..fa275da649ad9 100644 --- a/drivers/usb/host/xhci-tegra.c +++ b/drivers/usb/host/xhci-tegra.c @@ -1755,6 +1755,7 @@ put_hcd: put_powerdomains: tegra_xusb_powerdomain_remove(&pdev->dev, tegra); put_padctl: + of_node_put(np); tegra_xusb_padctl_put(tegra->padctl); return err; }