linux_dsm_epyc7002/sound/soc/intel
Gustavo A. R. Silva d00cc2f16a
ASoC: Intel: Skylake: Use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes, in particular in the
context in which this code is being used.

So, replace the following form:

uuid_params->num_modules * sizeof(struct skl_mod_inst_map) + sizeof(uuid_params->num_modules)

with:

struct_size(params, u.map, uuid_params->num_modules)

and so on...

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-24 13:01:38 +01:00
..
atom ASoC: intel: Fix crash at suspend/resume after failed codec registration 2019-03-25 12:09:13 +00:00
baytrail ASoC: Updates for v5.1 2019-02-08 14:20:32 +01:00
boards ASoC: Intel: boards: remove unnecessary inclusion of skl.h 2019-05-24 13:00:58 +01:00
common ASoC: Intel: Add machine driver for CX2072X on BYT/CHT platforms 2019-05-22 13:19:06 +01:00
haswell ASoC: Intel: Haswell: Remove set but not used variable 'stage_type' 2019-04-19 17:00:59 +01:00
skylake ASoC: Intel: Skylake: Use struct_size() helper 2019-05-24 13:01:38 +01:00
Kconfig ASoC: Intel: Skylake: Add Cometlake PCI IDs 2019-05-13 12:42:15 +01:00
Makefile ASoC: Intel: Fix Kconfig with top-level selector 2018-01-08 16:18:48 +00:00