diff options
author | Claudiu Beznea <[email protected]> | 2023-05-31 10:39:50 +0300 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-06-21 23:28:52 +0530 |
commit | 44faada0f38fc333d392af04c343b0e23f8f5d81 (patch) | |
tree | 3d4084c2092cb7420e689f8b22ed9ec008160798 /lib/mpi/mpi-bit.c | |
parent | 6cd52a2a06774c6c454ffef084c3d9b17618ca23 (diff) |
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 <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions