diff options
author | Claudiu Beznea <[email protected]> | 2023-05-30 12:39:12 +0300 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-06-16 21:52:50 -0700 |
commit | bd46cd0b802d9c9576ca78007aa084ae3e74907b (patch) | |
tree | 4a36a211c8cafd51303b9fca2a7dcc5ac76ed003 /lib/mpi/mpi-inline.h | |
parent | b73ed981da6d25c921aaefa7ca3df85bbd85b7fc (diff) |
clk: ti: clkctrl: check return value of kasprintf()
kasprintf() 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: 852049594b9a ("clk: ti: clkctrl: convert subclocks to use proper names also")
Fixes: 6c3090520554 ("clk: ti: clkctrl: Fix hidden dependency to node name")
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Tony Lindgren <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions