linux_dsm_epyc7002/sound/soc/intel/skylake
Vincent Stehlé aaec7e9f78 ASoC: Intel: Skylake: fix typo in sizeof
The size of the pointer to a data structure to send is erroneously
passed to sst_ipc_tx_message_wait() as its tx_bytes argument. It should
be given the size of the pointed skl_ipc_dxstate_info structure instead.

Coincidentally, both the pointer and the structure have the same size of
8 bytes on a 64 bit machine, which "masks" the issue. Compiling for 32
bit reveals the issue more clearly.

Fix the typo for correctness, and to make the code robust to future
evolutions of the skl_ipc_dxstate_info structure size.

This fixes the following coccicheck error:

  sound/soc/intel/skylake/skl-sst-ipc.c:641:8-14: ERROR: application of sizeof to pointer

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Cc: Jeeja KP <jeeja.kp@intel.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: trivial@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-16 10:08:09 +00:00
..
Makefile ASoC: Intel: Skylake: Add pipe and modules handlers 2015-10-07 15:30:15 +01:00
skl-messages.c ASoC: Intel: Skylake: Fix to remove channel_map calculation 2015-11-16 10:08:09 +00:00
skl-nhlt.c ASoC: Intel: Skylake: Ignore rate check for DMIC link 2015-11-16 10:08:09 +00:00
skl-nhlt.h ASoC: Intel: Skylake: Use acpi header for NHLT header 2015-08-07 14:26:01 +01:00
skl-pcm.c ASoC: Intel: Skylake: Fix DSP pipe underrun/overrun issue 2015-11-16 10:08:09 +00:00
skl-sst-cldma.c ASoC: Intel: Skylake: Add code loader DMA APIs 2015-07-16 21:46:50 +01:00
skl-sst-cldma.h ASoC: Intel: Skylake: add code loader DMA operations 2015-07-16 21:46:50 +01:00
skl-sst-dsp.c ASoC: Intel: Skylake: Verify the status bit before handling interrupt 2015-10-09 11:18:59 +01:00
skl-sst-dsp.h ASoC: Intel: Skylake: Add SKL DSP initialization 2015-07-16 21:46:50 +01:00
skl-sst-ipc.c ASoC: Intel: Skylake: fix typo in sizeof 2015-11-16 10:08:09 +00:00
skl-sst-ipc.h ASoC: Intel: Skylake: Correct the runtime handler behaviour 2015-10-09 11:19:00 +01:00
skl-sst.c ASoC: Intel: Skylake: Correct the runtime handler behaviour 2015-10-09 11:19:00 +01:00
skl-topology.c ASoC: Intel: Skylake: Add support for module GUIDs 2015-11-16 10:08:09 +00:00
skl-topology.h ASoC: Intel: Skylake: Add support for module GUIDs 2015-11-16 10:08:09 +00:00
skl-tplg-interface.h ASoC: Intel: Skylake: Add support for module GUIDs 2015-11-16 10:08:09 +00:00
skl.c ASoC: Intel: Skylake: Fix PM behaviour 2015-11-16 10:08:09 +00:00
skl.h ASoC: Intel: Skylake: use module_pin info for unbind 2015-11-16 10:08:09 +00:00