Skip to content

Conversation

@plbossart
Copy link
Member

sound/soc/sof/intel/hda-dsp.c: In function
‘hda_dsp_set_hw_params_upon_resume’:
sound/soc/sof/intel/hda-dsp.c:469:6: error: variable ‘stream_tag’ set
but not used [-Werror=unused-but-set-variable]
int stream_tag;

Signed-off-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com

sound/soc/sof/intel/hda-dsp.c: In function
‘hda_dsp_set_hw_params_upon_resume’:
sound/soc/sof/intel/hda-dsp.c:469:6: error: variable ‘stream_tag’ set
but not used [-Werror=unused-but-set-variable]
  int stream_tag;

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@plbossart plbossart requested a review from ranj063 May 29, 2019 13:52
@plbossart plbossart requested a review from lgirdwood as a code owner May 29, 2019 13:52
@plbossart
Copy link
Member Author

@ranj063 can you look into the APL Up2 issues reported in the dmesg log. Some problem with HDaudio config?

@plbossart plbossart merged commit a29b7af into thesofproject:topic/sof-dev May 29, 2019
@xiulipan
Copy link

@plbossart @ranj063
It seems to be #895 and thesofproject/sof#1354 sync issue.
It seems this two patches are not minor ABI and did not backward compatible.

ranj063 pushed a commit to ranj063/linux that referenced this pull request Jun 24, 2021
When get_module_eeprom_by_page() is not implemented by the driver, NULL
pointer dereference can occur [1].

Fix by testing if get_module_eeprom_by_page() is implemented instead of
get_module_info().

[1]
 BUG: kernel NULL pointer dereference, address: 0000000000000000
 [...]
 CPU: 0 PID: 251 Comm: ethtool Not tainted 5.13.0-rc3-custom-00940-g3822d0670c9d thesofproject#989
 Call Trace:
  eeprom_prepare_data+0x101/0x2d0
  ethnl_default_doit+0xc2/0x290
  genl_family_rcv_msg_doit+0xdc/0x140
  genl_rcv_msg+0xd7/0x1d0
  netlink_rcv_skb+0x49/0xf0
  genl_rcv+0x1f/0x30
  netlink_unicast+0x1f6/0x2c0
  netlink_sendmsg+0x1f9/0x400
  __sys_sendto+0xe1/0x130
  __x64_sys_sendto+0x1b/0x20
  do_syscall_64+0x3a/0x70
  entry_SYSCALL_64_after_hwframe+0x44/0xae

Fixes: c97a31f ("ethtool: wire in generic SFP module access")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants