Commit 588b9278 authored by Axel Lin's avatar Axel Lin Committed by Zheng Zengkai
Browse files

regulator: rt4801: Fix NULL pointer dereference if priv->enable_gpios is NULL



stable inclusion
from stable-5.10.46
commit ba8a26a7ce8617f9f3d6230de34b2302df086b41
bugzilla: 168323
CVE: NA

--------------------------------

[ Upstream commit cb2381cb ]

devm_gpiod_get_array_optional may return NULL if no GPIO was assigned.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210603094944.1114156-1-axel.lin@ingics.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent c1019375
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment