mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-05 09:57:21 +02:00
3d2398f44a
The commitff9c512041("OPP: Use mutex locking guards") unintentionally made the for loop run longer than required. scoped_guard() is implemented as a for loop. The break statement now breaks out out the scoped_guard() and not out of the outer for loop. The outer loop always iterates to completion. Fix it. Fixes:ff9c512041("OPP: Use mutex locking guards") Reported-by: David Lechner <dlechner@baylibre.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>