MLK-9760: ASoC: fsl_esai: fix NULL pointer issue in reset handler
authorShengjiu Wang <shengjiu.wang@freescale.com>
Wed, 29 Oct 2014 07:47:35 +0000 (15:47 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:11 +0000 (14:48 -0500)
commit56d32970ed8d4368cc06fab960da9e0031f5bf69
treee835001106607d73dd06f5067314216d3b24b563
parent05e7c2545e22a23e30db1fa033c8cb5a4e8ab20d
MLK-9760: ASoC: fsl_esai: fix NULL pointer issue in reset handler

When test with case arecord -Dhw:0,1 | aplay -Dhw:0,0, xrun happened,
the reset handler will be called, but for BE(backend) stream, the
substream->ops is null.
This patch is to fix this null pointer issue.

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