aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAmadeusz Sławiński <[email protected]>2020-03-27 16:47:24 -0400
committerMark Brown <[email protected]>2020-04-09 12:46:03 +0100
commitabc3caac24501008465fdb55c5e89e16d58d5a3d (patch)
tree7a8fcaada732dcd75a49ca8ca7c9cc107655125d /tools/perf/scripts/python/export-to-sqlite.py
parentccfc531695f3a4aada042f6bdb33ac6be24e1aec (diff)
ASoC: topology: Add missing memory checks
kstrdup is an allocation function and it can fail, so its return value should be checked and handled appropriately. In order to check all cases, we need to modify set_stream_info to return a value, so check that everything went correctly when doing kstrdup(). Later add proper checks and error handlers. Signed-off-by: Amadeusz Sławiński <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions