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>
parent
6e5132f7
Please register or sign in to comment