diff options
author | Yang Yingliang <[email protected]> | 2021-06-16 12:45:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-06-17 15:26:40 +0200 |
commit | ec03554f980f917e0491aa8532aabedc9c080639 (patch) | |
tree | 143b8c25c5dfef1fe3fb5eb4c9defd16755f04d9 | |
parent | 9ea90e9fadb6cffb383ee23b132c36a88ee69019 (diff) |
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 <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/usb/host/xhci-tegra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index f30030a3e51b..fa275da649ad 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; } |