Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

firmware: cs_dsp: Fix endianness conversion in cs_dsp_mock_wmfw.c

In cs_dsp_mock_wmfw_add_coeff_desc() the value stored in longstring->len
needs a cpu_to_le16() conversion.

Fixes: 5cf1b7b47180 ("firmware: cs_dsp: Add mock wmfw file generator for KUnit testing")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412170233.8DnsdtY6-lkp@intel.com/
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20241217105624.139479-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Richard Fitzgerald and committed by
Mark Brown
644115e8 db8b9b12

+1 -1
+1 -1
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
··· 334 334 sizeof(*ple32)) / sizeof(*ple32); 335 335 336 336 longstring = (__force struct wmfw_long_string *)ple32; 337 - longstring->len = description_len; 337 + longstring->len = cpu_to_le16(description_len); 338 338 memcpy(longstring->data, def->description, description_len); 339 339 340 340 /* Round up to next __le32 multiple */