diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-05-30 12:39:06 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-06-16 21:52:49 -0700 |
commit | 144601f6228de5598f03e693822b60a95c367a17 (patch) | |
tree | 36c8fafc28ee4db3edb53905e11c0c3163c0d5b4 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) |
clk: vc5: check memory returned by 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: f491276a5168 ("clk: vc5: Allow Versaclock driver to support multiple instances")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230530093913.1656095-2-claudiu.beznea@microchip.com
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions