ASoC: Fix NULL pointer dereference in digital suspend

If soundcard registration has failed because of custom
driver probe failure and at the same time
msm_dig_suspend is called, this will lead to
null pointer dereference when component is accessed.
Add NULL check to avoid this.

CRs-Fixed: 2263005
Change-Id: If04ec624e45f05ebe08ee6500ccb13e3c8287051
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
1 file changed
tree: 974b46d996e241f57eea551ea56b57bf871eac17
  1. asoc/
  2. config/
  3. dsp/
  4. include/
  5. ipc/
  6. soc/
  7. Android.mk
  8. Makefile
  9. Makefile.am
  10. NOTICE