linux/drivers/usb/typec
Wei Yongjun 840a6ff50a usb: typec: stusb160x: fix return value check in stusb160x_probe()
[ Upstream commit f2d90e07b5 ]

In case of error, the function device_get_named_child_node() returns
NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Fixes: da0cb63100 ("usb: typec: add support for STUSB160x Type-C controller family")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210308094839.3586773-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-05-14 09:50:09 +02:00
..
altmodes usb: typec: Fix copy paste error for NVIDIA alt-mode description 2021-01-19 18:27:27 +01:00
mux usb: typec: intel_pmc_mux: Configure HPD first for HPD+IRQ request 2021-01-12 20:18:18 +01:00
tcpm usb: typec: tcpci: Check ROLE_CONTROL while interpreting CC_STATUS 2021-05-14 09:50:08 +02:00
ucsi usb: typec: ucsi: Report power supply changes 2020-11-13 15:25:02 +01:00
bus.c usb: typec: altmode: Fix typec_altmode_get_partner sometimes returning an invalid pointer 2020-04-22 19:23:19 +02:00
bus.h usb: typec: altmode: Remove the notification chain 2020-02-12 10:51:21 -08:00
class.c usb: typec: add typec_find_pwr_opmode 2020-10-02 15:30:31 +02:00
hd3ss3220.c usb: typec: hd3ss3220: Use OF graph API to get the connector fwnode 2020-10-02 15:28:18 +02:00
Kconfig usb: typec: qcom-pmic-typec: fix builtin build errors 2020-11-16 09:58:47 +01:00
Makefile usb: typec: Add QCOM PMIC typec detection driver 2020-10-09 15:14:43 +02:00
mux.c usb: fix kernel-doc markups 2020-10-28 13:18:56 +01:00
qcom-pmic-typec.c usb: typec: Add QCOM PMIC typec detection driver 2020-10-09 15:14:43 +02:00
stusb160x.c usb: typec: stusb160x: fix return value check in stusb160x_probe() 2021-05-14 09:50:09 +02:00
tps6598x.c usb: typec: tps6598x: Fix return value check in tps6598x_probe() 2021-05-14 09:50:09 +02:00