]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: Intel: avs: Fix memory leak in avs_register_i2s_test_boards()
authorCezary Rojewski <cezary.rojewski@intel.com>
Tue, 7 Apr 2026 08:54:58 +0000 (10:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:30:40 +0000 (13:30 +0200)
commita5ebff1f238edde3f0eb63a38a3fce8f8b6153c8
tree2a07439cd9c9a3c58fe39f0cac1bfbe4ebf717ce
parentf8c3258541a0680a4ebc08b05b2bc5fdad3288a9
ASoC: Intel: avs: Fix memory leak in avs_register_i2s_test_boards()

[ Upstream commit c5408d818316061d6063c11a4f47f1ba25a3a708 ]

Caller is responsible for freeing array allocated with
parse_int_array().

Found out by Coverity.

Fixes: 7d859189de13 ("ASoC: Intel: avs: Allow to specify custom configurations with i2s_test")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260407085459.400628-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/intel/avs/board_selection.c