ASoC: dapm: Return -ENOMEM in snd_soc_dapm_new_dai_widgets()
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Oct 2013 13:21:50 +0000 (14:21 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 28 Oct 2013 16:33:10 +0000 (09:33 -0700)
commit298402a3858e17e6a78acafa1dcd490167dd9f74
tree7696f718a538f94df7a70a9409a27a9f02ac5d2e
parentff18620c2157671a8ee21ebb8e6a3520ea209b1f
ASoC: dapm: Return -ENOMEM in snd_soc_dapm_new_dai_widgets()

... instead of NULL dereferences.

Spotted by coverity CID 402004.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c