linux/sound/soc/intel
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
..
atom ASoC: Intel: Atom: move atom driver to common acpi match 2015-11-16 10:08:09 +00:00
baytrail ASoC: Intel: sst_byt: fix initialize 'NULL device *' issue 2015-07-29 14:55:16 +01:00
boards ASoC: Intel: Skylake: Adding nau88l25+ssm4567 machine driver 2015-11-18 18:34:23 +00:00
common ASoC: Intel: constify sst_block_ops structures 2015-11-16 17:38:54 +00:00
haswell ASoC: Intel: constify sst_block_ops structures 2015-11-16 17:38:54 +00:00
skylake ASoC: Intel: Skylake: Fix null ptr dereferenced in skl_tplg_bind_sinks 2015-11-18 18:46:36 +00:00
Kconfig ASoC: Intel: Skylake: Adding nau88l25+ssm4567 machine driver 2015-11-18 18:34:23 +00:00
Makefile ASoC: Intel: Add makefile support for SKL driver 2015-07-09 11:54:26 +01:00