linux/drivers/phy/tegra
Claudiu Beznea 44faada0f3 phy: tegra: xusb: check return value of devm_kzalloc()
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>
2023-06-21 23:28:52 +05:30
..
Kconfig phy: tegra: Select USB_COMMON for usb_get_maximum_speed() 2020-04-16 15:05:53 +02:00
Makefile phy: tegra: xusb: Add Tegra234 support 2023-01-12 22:57:06 +05:30
phy-tegra194-p2u.c phy: tegra: p2u: Set ENABLE_L2_EXIT_RATE_CHANGE in calibration 2022-10-28 17:43:12 +05:30
xusb-tegra124.c phy: tegra: xusb: Remove usb3 supply 2022-11-07 10:20:25 +05:30
xusb-tegra186.c phy: tegra: xusb: Support sleepwalk for Tegra234 2023-03-20 18:14:59 +05:30
xusb-tegra210.c phy: tegra: xusb: Remove usb3 supply 2022-11-07 10:20:25 +05:30
xusb.c phy: tegra: xusb: check return value of devm_kzalloc() 2023-06-21 23:28:52 +05:30
xusb.h phy: tegra: xusb: Support sleepwalk for Tegra234 2023-03-20 18:14:59 +05:30