ASoC: omap-hdmi-audio: Add missing error check for devm_kzalloc
authorKiran Padwal <kiran.padwal@smartplayin.com>
Thu, 12 Feb 2015 09:08:02 +0000 (14:38 +0530)
committerMark Brown <broonie@kernel.org>
Sat, 14 Feb 2015 04:32:53 +0000 (13:32 +0900)
commitfb5ab7296a2bea17c38fae48af2808a07049ac90
treebdecae4a8df01ba4d5271f539565d1ad44473166
parentbfa76d49576599a4b9f9b7a71f23d73d6dcff735
ASoC: omap-hdmi-audio: Add missing error check for devm_kzalloc

This patch add a missing check on the return value of devm_kzalloc,
which would cause a NULL pointer dereference in a OOM situation.

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/omap/omap-hdmi-audio.c