usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()
stable inclusion from stable-v5.10.137 commit bb5e59f00f7d3cb92ada5854b2d34122c441268e category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bb5e59f00f7d3cb92ada5854b2d34122c441268e -------------------------------- [ Upstream commit f08aa7c8 ] dev_pm_domain_attach_by_name() may return NULL in some cases, so IS_ERR() doesn't meet the requirements. Thus fix it. Fixes: 49db4272 ("usb: gadget: Add UDC driver for tegra XUSB device mode controller") Signed-off-by: NTang Bin <tangbin@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20220525135332.23144-1-tangbin@cmss.chinamobile.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录