2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-25 23:26:03 +08:00
linux-next/sound/soc/intel
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
..
atom ASoC: Intel: Atom: update Thinkpad 10 quirk 2017-04-18 18:19:04 +01:00
baytrail ASoC: intel: Replace kthread with work 2016-11-30 17:41:13 +00:00
boards ASoC: bytcr_rt5640: log quirk configuration errors 2017-04-25 16:39:42 +01:00
common ASoC: Intel: Common: Update dsp register poll implementation 2017-01-06 18:14:45 +00:00
haswell ASoC: intel: remove unused variable data and associated code 2017-03-27 12:31:43 +01:00
skylake ASoC: Intel: Skylake: fix uninitialized pointer use 2017-04-30 21:46:49 +09:00
Kconfig ASoC: Intel: boards: add card for MinnowBoardMax/Up I2S access 2017-03-13 16:41:15 +00:00
Makefile ASoC: Intel: rename SND_SST_MFLD_PLATFORM to SND_SST_ATOM_HIFI2_PLATFORM 2017-01-17 17:46:40 +00:00