]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: tas2783A: Fix issues in firmware parsing
authorNiranjan H Y <niranjan.hy@ti.com>
Thu, 30 Oct 2025 15:16:37 +0000 (20:46 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 6 Nov 2025 13:12:34 +0000 (13:12 +0000)
commit84f5526e4dce0a44d050ceb1b1bf21d43016d91b
tree2c4a3d77ddce4df45d93659a2d8e5ac4e99be971
parent1a58d865f423f4339edf59053e496089075fa950
ASoC: tas2783A: Fix issues in firmware parsing

During firmware download, if the size of the firmware is too small,
it wrongly assumes the firmware download is successful. If there is
size mismatch with chunk's header, invalid memory is accessed.
Fix these issues by throwing error during these cases.

Fixes: 4cc9bd8d7b32 (ASoc: tas2783A: Add soundwire based codec driver)
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202510291226.2R3fbYNh-lkp@intel.com/
Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>
Link: https://patch.msgid.link/20251030151637.566-1-niranjan.hy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2783-sdw.c