]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: tegra: Fix error check
authorTang Bin <tangbin@cmss.chinamobile.com>
Tue, 24 May 2022 12:14:04 +0000 (20:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 09:48:52 +0000 (11:48 +0200)
commitc5ce6d429ca4de913ccd5520a693c00901767c56
treeef275937cad888bf9d0e85ba34f0faea1bad8d3b
parentf7de7dca8d8674a2afdf7f64af8a0244d3938be8
usb: xhci: tegra: Fix error check

In the function tegra_xusb_powerdomain_init(),
dev_pm_domain_attach_by_name() may return NULL in some cases,
so IS_ERR() doesn't meet the requirements. Thus fix it.

Fixes: 68a1ffbd2edd ("usb: xhci: tegra: Add genpd support")
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20220524121404.18376-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c