]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: check that dummy regulator has been probed before using it
authorChristian Eggers <ceggers@arri.de>
Thu, 13 Mar 2025 10:27:39 +0000 (11:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Mar 2025 21:03:29 +0000 (22:03 +0100)
commita99f1254b11eaadd0794b74a8178bad92ab01cae
treecfe779e331d80cd6b905ab098c538f8c788883be
parentd3b83a1442a09b145006eb4294b1a963c5345c9c
regulator: check that dummy regulator has been probed before using it

commit 2c7a50bec4958f1d1c84d19cde518d0e96a676fd upstream.

Due to asynchronous driver probing there is a chance that the dummy
regulator hasn't already been probed when first accessing it.

Cc: stable@vger.kernel.org
Signed-off-by: Christian Eggers <ceggers@arri.de>
Link: https://patch.msgid.link/20250313103051.32430-3-ceggers@arri.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/core.c