]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: wm_adsp_fw_find_test: Clear searched_fw_files in find-by-index test
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 5 May 2026 10:51:23 +0000 (11:51 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 5 May 2026 12:23:08 +0000 (21:23 +0900)
commitaf64f790969973b325efda7264d6860167623cdd
tree34fe0e24f989caa08cc74ebf824f22e85c48d98e
parent78538047717bdeabe8481ef611c9131e455e61df
ASoC: wm_adsp_fw_find_test: Clear searched_fw_files in find-by-index test

In wm_adsp_fw_find_test_find_firmware_byindex() the content of
priv->searched_fw_files must be cleared before starting the next iteration.

The files searched for are appended to priv->searched_fw_files, so if it is
not cleared on each iteration it will still contain the searches from the
previous iteration.

Fixes: bf2d44d07de7 ("ASoC: wm_adsp: Add kunit test for firmware file search")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260505105123.3539778-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp_fw_find_test.c