ASoC: mop500_ab8500: Add a NULL pointer check in mop500_ab8500_machine_init()
authorRajan Vaja <rajan.vaja@gmail.com>
Wed, 20 May 2015 04:50:54 +0000 (10:20 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2015 11:05:48 +0000 (12:05 +0100)
commit72f0095e7993dd9af8d5531740bf549359314bf0
treed3499d3a2e8e0e2058e8473059e3449419d15a7e
parentb787f68c36d49bb1d9236f403813641efa74a031
ASoC: mop500_ab8500: Add a NULL pointer check in mop500_ab8500_machine_init()

Avoid possible crash (NULL pointer dereference) by making
sure that dem_kzalloc() is successful.

Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ux500/mop500_ab8500.c