diff options
author | 2023-05-30 12:39:06 +0300 | |
---|---|---|
committer | 2023-06-16 21:52:49 -0700 | |
commit | 144601f6228de5598f03e693822b60a95c367a17 (patch) | |
tree | 36c8fafc28ee4db3edb53905e11c0c3163c0d5b4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 6.4-rc1 (diff) | |
download | wireguard-linux-144601f6228de5598f03e693822b60a95c367a17.tar.xz wireguard-linux-144601f6228de5598f03e693822b60a95c367a17.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions