commit | ba8a26a7ce8617f9f3d6230de34b2302df086b41 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Thu Jun 03 17:49:44 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jun 23 14:42:48 2021 +0200 |
tree | cdc794e11ba71853e6f2cf3305f76cd4f3cf49ae | |
parent | 2f8f0e97cebb6c2b7cffd5b7c08331535680ae40 [diff] |
regulator: rt4801: Fix NULL pointer dereference if priv->enable_gpios is NULL [ Upstream commit cb2381cbecb81a8893b2d1e1af29bc2e5531df27 ] devm_gpiod_get_array_optional may return NULL if no GPIO was assigned. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210603094944.1114156-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>