linux/sound/soc/intel/skylake
Jeeja KP 0ed95d769c ASoC: Intel: Skylake: Fix null ptr dereferenced in skl_tplg_bind_sinks
This patch fixes the below warning form smatch and makes the
skl_tplg_bind_sinks take the next sink as argument which is true
when the current sink is valid

sound/soc/intel/skylake/skl-topology.c:453 skl_tplg_bind_sinks()
	error: we previously assumed 'sink' could be null (see line 452)

sound/soc/intel/skylake/skl-topology.c
   451
   452		if (!sink)
                     ^^^^
New check.  Reversed?

   453			return skl_tplg_bind_sinks(sink, skl, src_mconfig);
                                                   ^^^^ This is
dereferenced inside the function.

   454
   455		return 0;

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-18 18:46:36 +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: Use the fw name from ACPI mach table 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: remove pm_runtime_get/put calls 2015-11-18 18:46:36 +00:00
skl-sst-cldma.c ASoC: Intel: Skylake: Fix CLDMA buffer wrap case 2015-11-18 18:46:36 +00: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: Use the fw name from ACPI mach table 2015-11-16 10:08:09 +00: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: Reset the DSP when set D3 fails 2015-11-18 18:46:36 +00:00
skl-topology.c ASoC: Intel: Skylake: Fix null ptr dereferenced in skl_tplg_bind_sinks 2015-11-18 18:46:36 +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: Remove redundant init in resume 2015-11-18 18:46:36 +00:00
skl.h ASoC: Intel: Skylake: Use the fw name from ACPI mach table 2015-11-16 10:08:09 +00:00