]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: Return -ENOMEM on memory allocation failure
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tue, 7 Feb 2023 21:04:28 +0000 (22:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2023 18:11:50 +0000 (19:11 +0100)
commitaab8aa8d2ec7427cb3813e2f60cbe1ed816bc225
tree11277492ee852d15dfc4df36844841a4412c2a59
parentf2974f65d53352e9246e74df30131631fe3d3018
ASoC: topology: Return -ENOMEM on memory allocation failure

[ Upstream commit c64a63ba121f0e7c373460039dfb5e68351e5683 ]

When handling error path, ret needs to be set to correct value.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Fixes: 1b5c1c6331e4 ("ASoC: topology: Add support for multiple kcontrol types to a widget")
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20230207210428.2076354-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/soc-topology.c