diff options
author | Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> | 2020-03-27 16:47:24 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-04-09 12:46:03 +0100 |
commit | abc3caac24501008465fdb55c5e89e16d58d5a3d (patch) | |
tree | 7a8fcaada732dcd75a49ca8ca7c9cc107655125d /sound/soc/sh | |
parent | ccfc531695f3a4aada042f6bdb33ac6be24e1aec (diff) | |
download | linux-abc3caac24501008465fdb55c5e89e16d58d5a3d.tar.gz |
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 <amadeuszx.slawinski@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200327204729.397-2-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')
0 files changed, 0 insertions, 0 deletions