ASoC: imx-pcm-dma: check kzalloc return value in function snd_imx_open
authorRichard Zhao <richard.zhao@freescale.com>
Tue, 18 Sep 2012 09:20:05 +0000 (17:20 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 19 Sep 2012 02:52:42 +0000 (22:52 -0400)
commitd37777a13b4c4b32e274013846d739e5bbbf6f8d
treedaa49428c3c524fad44eefaa8bfa1ca4dbead2f5
parent86767b7d5b3cdbd105e7d7066d671b52aa208188
ASoC: imx-pcm-dma: check kzalloc return value in function snd_imx_open

It fixed smatch warning:
sound/soc/fsl/imx-pcm-dma.c:112 snd_imx_open() error: potential null dereference 'dma_data'.  (kzalloc returns null)

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/imx-pcm-dma.c