linux/sound/soc/intel/skylake
Arnd Bergmann 351d74e4d7 ASoC: Intel: Skylake: fix uninitialized pointer use
The error handling in bxt_sst_dsp_init() got changed in a way that
it now derefences an uninitialized pointer when printing a warning
about the device not being found:

sound/soc/intel/skylake/bxt-sst.c: In function 'bxt_sst_dsp_init':
sound/soc/intel/skylake/bxt-sst.c:567:14: error: 'skl' may be used uninitialized in this function [-Werror=maybe-uninitialized]

As we do have a valid device pointer available at the call site,
let's use that instead.

Fixes: 9fe9c71192 ("ASoC: Intel: Skylake: Move sst common initialization to a helper function")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-04-30 21:46:49 +09:00
..
bxt-sst.c ASoC: Intel: Skylake: fix uninitialized pointer use 2017-04-30 21:46:49 +09:00
Makefile ASoC: Intel: Skylake: Add strip extended manifest utility 2016-05-30 18:24:41 +01:00
skl-messages.c ASoC: Intel: Skylake: Register dsp_fw_ops for kabylake 2017-04-26 15:47:45 +01:00
skl-nhlt.c ASoC: Intel: Skylake: remove hard coded ACPI path 2017-03-29 12:53:32 +01:00
skl-nhlt.h ASoC: Intel: Skylake: Add api to retrieve dmic array info from nhlt 2016-05-30 18:16:44 +01:00
skl-pcm.c ASoC: Intel: Skylake: Fix a couple user after free bugs 2017-04-21 18:00:33 +01:00
skl-sst-cldma.c ASoC: Intel: Skylake: Fix module load when module size > DMA buffer size 2017-03-15 17:28:18 +00:00
skl-sst-cldma.h ASoC: Intel: Skylake: Fix module load when module size > DMA buffer size 2017-03-15 17:28:18 +00:00
skl-sst-dsp.c ASoC: Intel: bxtn: Update DSP core state in D0 2017-03-15 17:28:01 +00:00
skl-sst-dsp.h ASoC: Intel: Skylake: Register dsp_fw_ops for kabylake 2017-04-26 15:47:45 +01:00
skl-sst-ipc.c ASoC: Intel: Skylake: Add loadable module support on KBL platform 2017-04-26 15:47:53 +01:00
skl-sst-ipc.h ASoC: Intel: Skylake: Modify load_lib_ipc arguments for a nowait version 2017-04-26 15:47:49 +01:00
skl-sst-utils.c ASoC: Intel: Skylake: Commonize library load 2017-04-26 15:47:37 +01:00
skl-sst.c ASoC: Intel: Skylake: Add loadable module support on KBL platform 2017-04-26 15:47:53 +01:00
skl-topology.c ASoC: Intel: Skylake: Fix a couple user after free bugs 2017-04-21 18:00:33 +01:00
skl-topology.h ASoC: Intel: Skylake: Add support for deferred DSP module bind 2017-04-12 16:57:52 +01:00
skl-tplg-interface.h ASoC: Intel: Skylake: Clean up manifest info 2017-01-06 18:14:31 +00:00
skl.c ASoC: Intel: Skylake: Uninitialized variable in probe_codec() 2017-04-21 17:57:38 +01:00
skl.h ASoC: Intel: Skylake: Add support for deferred DSP module bind 2017-04-12 16:57:52 +01:00