OPP: Protect `lazy_opp_tables` list with `opp_table_lock`
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 8 Jun 2023 07:40:14 +0000 (13:10 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 14 Jun 2023 03:50:50 +0000 (09:20 +0530)
commit64aaeb708245acdcbe51cf30c84418668c044d80
treebf91e1abacf6b02272cc394a3487cce0b34c280b
parent167eb2bd947d9c04b0f6f1a5495ce4a99eeab598
OPP: Protect `lazy_opp_tables` list with `opp_table_lock`

The `opp_table_lock` lock is already used to protect the list elsewhere,
use it while adding or removing entries from it.

Reported-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
drivers/opp/of.c