Skip to content
Commit 0a65fbf6 authored by Kiran Padwal's avatar Kiran Padwal Committed by Lee Jones
Browse files

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: default avatarKiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent bb400d21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment