WSL2-Linux-Kernel/drivers/phy
Claudiu Beznea 07e229f06e phy: tegra: xusb: check return value of devm_kzalloc()
[ Upstream commit 44faada0f3 ]

devm_kzalloc() returns a pointer to dynamically allocated memory.
Pointer could be NULL in case allocation fails. Check pointer validity.
Identified with coccinelle (kmerr.cocci script).

Fixes: f67213cee2 ("phy: tegra: xusb: Add usb-role-switch support")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230531073950.145339-1-claudiu.beznea@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-23 13:47:26 +02:00
..
allwinner
amlogic phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned by of_get_parent() 2022-10-26 12:35:09 +02:00
broadcom phy: usb: s2 WoL wakeup_count not incremented for USB->Eth devices 2022-12-31 13:14:33 +01:00
cadence phy: cadence: Sierra: Fix to get correct parent for mux clocks 2022-01-27 11:04:16 +01:00
freescale
hisilicon
ingenic
intel
lantiq
marvell
mediatek phy: phy-mtk-tphy: fix the phy type setting issue 2022-10-26 12:35:09 +02:00
microchip
motorola phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe 2022-05-09 09:14:33 +02:00
mscc
qualcomm phy: qcom-qmp-combo: fix runtime suspend 2023-02-09 11:26:46 +01:00
ralink phy: ralink: mt7621-pci: add sentinel to quirks table 2022-11-16 09:58:17 +01:00
renesas
rockchip phy: rockchip-typec: Fix unsigned comparison with less than zero 2023-03-11 13:57:38 +01:00
samsung phy: samsung: phy-exynos-pcie: sanitize init/power_on callbacks 2022-08-25 11:40:39 +02:00
socionext
st phy: st: miphy28lp: use _poll_timeout functions for waits 2023-05-24 17:36:48 +01:00
tegra phy: tegra: xusb: check return value of devm_kzalloc() 2023-07-23 13:47:26 +02:00
ti phy: ti: fix Kconfig warning and operator precedence 2023-02-01 08:27:07 +01:00
xilinx phy: xilinx: zynqmp: Fix bus width setting for SGMII 2022-02-16 12:56:22 +01:00
Kconfig
Makefile
phy-can-transceiver.c phy: phy-can-transceiver: Skip warning if no "max-bitrate" 2023-02-01 08:27:13 +01:00
phy-core-mipi-dphy.c phy: dphy: Correct lpx parameter and its derivatives(ta_{get,go,sure}) 2022-04-08 14:23:46 +02:00
phy-core.c
phy-lgm-usb.c
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c