acrn-kernel/drivers/phy/tegra
Claudiu Beznea d986fb02a1 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-19 16:21:58 +02:00
..
Kconfig
Makefile
phy-tegra194-p2u.c
xusb-tegra124.c
xusb-tegra186.c
xusb-tegra210.c
xusb.c phy: tegra: xusb: check return value of devm_kzalloc() 2023-07-19 16:21:58 +02:00
xusb.h