diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-05-30 12:39:09 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-06-16 21:52:50 -0700 |
commit | 36e4ef82016a2b785cf2317eade77e76699b7bff (patch) | |
tree | 27e9638f70c62e60ae99de3db33626349941b79a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2560114c06d7a752b3f4639f28cece58fed11267 (diff) |
clk: si5341: check return value of {devm_}kasprintf()
{devm_}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: 3044a860fd09 ("clk: Add Si5341/Si5340 driver")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230530093913.1656095-5-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions