All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 6292/10910] sound/soc/sof/amd/acp.c:663 sof_amd_handle_acp7x_sdw_wake_event() error: buffer overflow 'adata->sdw->pdev' 2 <= 3
@ 2026-09-27 10:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-27 10:08 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
CC: Mark Brown <broonie@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f5f84daefcd92d7a630066635ecea1433ed5eac7
commit: c9b000c028792c313861b123c508b3dc7f7114ab [6292/10910] ASoC: SOF: amd: add ACP7.B/7.F SoundWire IO IRQ handling
:::::: branch date: 2 days ago
:::::: commit date: 10 days ago
config: i386-randconfig-2200-20260927 (https://download.01.org/0day-ci/archive/20260927/202609271202.N9xIiQL9-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
smatch: v0.5.0-9187-g5189e3fb

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202609271202.N9xIiQL9-lkp@intel.com/

New smatch warnings:
sound/soc/sof/amd/acp.c:663 sof_amd_handle_acp7x_sdw_wake_event() error: buffer overflow 'adata->sdw->pdev' 2 <= 3

Old smatch warnings:
sound/soc/sof/amd/acp.c:666 sof_amd_handle_acp7x_sdw_wake_event() error: buffer overflow 'adata->sdw->pdev' 2 <= 3

vim +663 sound/soc/sof/amd/acp.c

c9b000c028792c Vijendar Mukunda 2026-09-10  654  
c9b000c028792c Vijendar Mukunda 2026-09-10  655  static void sof_amd_handle_acp7x_sdw_wake_event(struct acp_dev_data *adata)
c9b000c028792c Vijendar Mukunda 2026-09-10  656  {
c9b000c028792c Vijendar Mukunda 2026-09-10  657  	struct amd_sdw_manager *amd_manager;
c9b000c028792c Vijendar Mukunda 2026-09-10  658  	unsigned int instance;
c9b000c028792c Vijendar Mukunda 2026-09-10  659  
c9b000c028792c Vijendar Mukunda 2026-09-10  660  	for (instance = 0; instance < ACP7X_SDW_MAX_MANAGER_COUNT; instance++) {
c9b000c028792c Vijendar Mukunda 2026-09-10  661  		if (!adata->acp7x_sdw_wake_event[instance])
c9b000c028792c Vijendar Mukunda 2026-09-10  662  			continue;
c9b000c028792c Vijendar Mukunda 2026-09-10 @663  		if (!adata->sdw->pdev[instance])
c9b000c028792c Vijendar Mukunda 2026-09-10  664  			continue;
c9b000c028792c Vijendar Mukunda 2026-09-10  665  
c9b000c028792c Vijendar Mukunda 2026-09-10  666  		amd_manager = dev_get_drvdata(&adata->sdw->pdev[instance]->dev);
c9b000c028792c Vijendar Mukunda 2026-09-10  667  		if (amd_manager)
c9b000c028792c Vijendar Mukunda 2026-09-10  668  			pm_request_resume(amd_manager->dev);
c9b000c028792c Vijendar Mukunda 2026-09-10  669  		adata->acp7x_sdw_wake_event[instance] = false;
c9b000c028792c Vijendar Mukunda 2026-09-10  670  	}
c9b000c028792c Vijendar Mukunda 2026-09-10  671  }
c9b000c028792c Vijendar Mukunda 2026-09-10  672  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-27 10:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-27 10:08 [linux-next:master 6292/10910] sound/soc/sof/amd/acp.c:663 sof_amd_handle_acp7x_sdw_wake_event() error: buffer overflow 'adata->sdw->pdev' 2 <= 3 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.