diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-05-31 10:39:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-27 09:44:07 +0300 |
commit | e4845cdea71e280de71946577e7a47ba48dc84af (patch) | |
tree | db61991510f46027b961b9d78f4f67e1d112e4dd /drivers/pwm/pwm-imx-tpm.c | |
parent | 442e1a98bd0220d1e17ec0f37052e636e2222d7f (diff) | |
download | linux-e4845cdea71e280de71946577e7a47ba48dc84af.tar.xz |
phy: tegra: xusb: check return value of devm_kzalloc()
[ Upstream commit 44faada0f38fc333d392af04c343b0e23f8f5d81 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pwm/pwm-imx-tpm.c')
0 files changed, 0 insertions, 0 deletions