]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - sound/soc/intel/skylake/skl-topology.c
ASoC: Intel: Skylake: fix invalid memory access due to wrong reference of pointer
[mirror_ubuntu-zesty-kernel.git] / sound / soc / intel / skylake / skl-topology.c
index bd313c907b20df470a8c7727f8169c036fae25b9..172d7db1653c864cfc4841e4db07219f988a09f5 100644 (file)
@@ -486,7 +486,7 @@ static int skl_tplg_set_module_init_data(struct snd_soc_dapm_widget *w)
                        if (bc->set_params != SKL_PARAM_INIT)
                                continue;
 
-                       mconfig->formats_config.caps = (u32 *)&bc->params;
+                       mconfig->formats_config.caps = (u32 *)bc->params;
                        mconfig->formats_config.caps_size = bc->size;
 
                        break;