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.

ASoC: rt1320: fix the warning the string may be truncated

1488 | "realtek/rt1320/rt1320_%s_%s_%s.dat", vendor, product, sku);
| ^~ ~~~~~~
sound/soc/codecs/rt1320-sdw.c:1487:17: note: 'snprintf' output between 29 and 410 bytes into a destination of size 128
1487 | snprintf(filename, sizeof(filename),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1488 | "realtek/rt1320/rt1320_%s_%s_%s.dat", vendor, product, sku);
|

Fixes: da1682d5e8b5 ("ASoC: rt1320: support calibration and temperature/r0 loading")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512191521.RK0edKdX-lkp@intel.com/
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20251222101329.558973-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Shuming Fan and committed by
Mark Brown
8db50f0f c6bca73d

+2 -2
+2 -2
sound/soc/codecs/rt1320-sdw.c
··· 1433 1433 const char *dmi_vendor, *dmi_product, *dmi_sku; 1434 1434 char vendor[128], product[128], sku[128]; 1435 1435 char *ptr_vendor, *ptr_product, *ptr_sku; 1436 - char rae_filename[128]; 1436 + char rae_filename[512]; 1437 1437 char tag[5]; 1438 1438 int ret = 0; 1439 1439 int retry = 200; ··· 1600 1600 const char *dmi_vendor, *dmi_product, *dmi_sku; 1601 1601 char vendor[128], product[128], sku[128]; 1602 1602 char *ptr_vendor, *ptr_product, *ptr_sku; 1603 - char filename[128]; 1603 + char filename[512]; 1604 1604 1605 1605 switch (rt1320->dev_id) { 1606 1606 case RT1320_DEV_ID: