diff options
author | Claudiu Beznea <[email protected]> | 2023-05-30 12:39:07 +0300 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-06-16 21:52:49 -0700 |
commit | bb7d09ddbf361d51eae46f38e7c8a2b85914ea2a (patch) | |
tree | 09c0803f75ae1d360513704086cba2201beff56a /lib/mpi/mpi-inline.h | |
parent | 144601f6228de5598f03e693822b60a95c367a17 (diff) |
clk: cdce925: 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: 19fbbbbcd3a3 ("Add TI CDCE925 I2C controlled clock synthesizer driver")
Depends-on: e665f029a283 ("clk: Convert to using %pOFn instead of device_node.name")
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions