[PATCH] phy: tegra: xusb: check return value of devm_kzalloc()

Vinod Koul vkoul at kernel.org
Wed Jun 21 10:37:23 PDT 2023


On 31-05-23, 10:39, Claudiu Beznea wrote:
> 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).

Applied, thanks

-- 
~Vinod



More information about the linux-phy mailing list