]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Fix potential NULL pointer dereference
authorPankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Tue, 7 Nov 2017 10:46:18 +0000 (16:16 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 18:56:13 +0000 (18:56 +0000)
commit0265ddd7b713bd8b68a9ec451761bcb87bbac4b3
treebe0de8f2430ae43e18aa3d9c3c4dede9f2546152
parentda3417fe1f6d54c864b05fd5710979bdffe78034
ASoC: Intel: Skylake: Fix potential NULL pointer dereference

Pointer 'mconfig' returned from call to skl_tplg_fe_get_cpr_module() can
be NULL. So check for the valid pointer before dereferencing.

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c