Skip to content
Commit db43b8d0 authored by Pan Bian's avatar Pan Bian Committed by Lee Jones
Browse files

mfd: intel_soc_pmic_core: Fix unchecked return value



unction devm_regmap_init_i2c() returns an ERR_PTR on errors, and its
return value should be checked before it is dereferenced. However, in
function intel_soc_pmic_i2c_probe(), the return value of function
devm_regmap_init_i2c() is used without validation. This patch fixes it.

Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent d1f4f01a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment