mfd: intel_soc_pmic: Add missing error check for devm_kzalloc
authorKiran Padwal <kiran.padwal@smartplayin.com>
Wed, 11 Feb 2015 10:10:50 +0000 (15:40 +0530)
committerLee Jones <lee.jones@linaro.org>
Mon, 16 Feb 2015 17:11:43 +0000 (17:11 +0000)
commit0a65fbf64dad890d9dd60ab1dc0ebdb9fb0a9e33
tree0e4fb8be0b47c357f6cbeddb4a7cfc7de69f43f1
parentbb400d2120bd253d73661c452b18485d2d5b42dd
mfd: intel_soc_pmic: 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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_soc_pmic_core.c