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

Goto put_padctl to put refcount of device on error in tegra_xusb_probe()

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-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c