Skip to content
Commit d37777a1 authored by Richard Zhao's avatar Richard Zhao Committed by Mark Brown
Browse files

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: default avatarRichard Zhao <richard.zhao@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 86767b7d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment