Home
last modified time | relevance | path

Searched hist:"44 faada0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/phy/tegra/
H A Dxusb.c44faada0 Wed May 31 02:39:50 CDT 2023 Claudiu Beznea <claudiu.beznea@microchip.com> 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: f67213cee2b3 ("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>