MLK-10048-3: ASoC: fsl_asrc: fix asrc crach when suspend/resume
authorShengjiu Wang <shengjiu.wang@freescale.com>
Mon, 8 Dec 2014 07:08:27 +0000 (15:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:03 +0000 (14:48 -0500)
commite841614bd3cc237ad63028a198344fb2c8bcce14
tree64ea8b0e8b049637cf0cdfd323b87289d299a1b3
parentc1cc1ecd75968457d1a0b812223bfbeb310285f1
MLK-10048-3: ASoC: fsl_asrc: fix asrc crach when suspend/resume

merge 7e1a620a030d17f93fdd97d076f1cdd042e79337

The reason of crach is that some variables are not protected in
function mxc_asrc_suspend(), when suspend, there is possibility to
access one NULL pointer.
Refine the spin lock usage, add protecting for pair_hold.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit e90c73f8170bc929cff54b0478da0573e4e26c23)
sound/soc/fsl/fsl_asrc_m2m.c