]> 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>
Thu, 10 Apr 2025 12:31:54 +0000 (14:31 +0200)
commit8e500180904aae63afdce95cb378aeabe119ecda
tree2ee522ef62e292d5390cbbbf012fa3eb30024df0
parentf45a322c9994beefb71f4332db48d6355b4bf6a7
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