Commit ec03554f authored by Yang Yingliang's avatar Yang Yingliang Committed by Greg Kroah-Hartman

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: 971ee247 ("usb: xhci: tegra: Enable ELPG for runtime/system PM")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210616044519.2183826-2-yangyingliang@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ea90e9f
......@@ -1755,6 +1755,7 @@ static int tegra_xusb_probe(struct platform_device *pdev)
put_powerdomains:
tegra_xusb_powerdomain_remove(&pdev->dev, tegra);
put_padctl:
of_node_put(np);
tegra_xusb_padctl_put(tegra->padctl);
return err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment