]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 25 May 2022 13:53:32 +0000 (21:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:41:21 +0000 (14:41 +0200)
commita61f248c24b024d0239db01306d6c9e1810e0790
treeb9d4461332afb617b979b94702f29e0e0c046cff
parenta0fbac3bf26a11f084233519ddf3fd5e5bb28939
usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()

[ Upstream commit f08aa7c80dac27ee00fa6827f447597d2fba5465 ]

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

Fixes: 49db427232fe ("usb: gadget: Add UDC driver for tegra XUSB device mode controller")
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20220525135332.23144-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/gadget/udc/tegra-xudc.c