]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: check and clear runtime module pointer
authorJie Yang <yang.jie@intel.com>
Sat, 30 May 2015 14:33:58 +0000 (22:33 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jun 2015 14:34:11 +0000 (15:34 +0100)
commit8644b57c029e2cc9291ae794ff9fe271c8a7f0e5
tree96415a9dad4b9266e7bd61e7b778dc79e51fc56e
parentdce5829b6f2544ee775b4f723547b096e3e5c074
ASoC: Intel: check and clear runtime module pointer

Add check runtime module pointers before freeing them, and clear
them to NULL after freed.

With this implemented, we can avoid NULL pointer dereference or
double free errors.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/haswell/sst-haswell-pcm.c