diff options
author | Amadeusz Sławiński <[email protected]> | 2020-03-27 16:47:24 -0400 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-04-09 12:46:03 +0100 |
commit | abc3caac24501008465fdb55c5e89e16d58d5a3d (patch) | |
tree | 7a8fcaada732dcd75a49ca8ca7c9cc107655125d /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ccfc531695f3a4aada042f6bdb33ac6be24e1aec (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