ASoC: ux500: Strengthen error checking after memory allocation
authorLee Jones <lee.jones@linaro.org>
Thu, 26 Jul 2012 10:28:37 +0000 (11:28 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Aug 2012 22:03:55 +0000 (23:03 +0100)
commit0dcd47426abde223b2386165470ec45d9777478e
tree4dd22c7e7ffbc223f33b5951b2a111f0d0d8942d
parentfbfe69836c088bcc0c5a0f32e788d3aef5f66aca
ASoC: ux500: Strengthen error checking after memory allocation

Currently there is no out-of-memory error checking after attempting
to allocate memory for the ux500_msp or ux500_msp_i2s_drvdata data
structures. Instead we go about populating them regardless. This
patch applies the necessary error checking to prevent a panic.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/ux500/ux500_msp_dai.c
sound/soc/ux500/ux500_msp_i2s.c