]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP replace kfree_rcu() with call_srcu() in opp_set_availability()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 27 Nov 2014 03:24:07 +0000 (08:54 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 29 Nov 2014 22:53:20 +0000 (23:53 +0100)
commit62f98647a9fa7e81d0a882f80a6c770bafeb2af1
tree43ce804178e162d5d57922194483adaacc79a76b
parenteac44e47b562bda826dd9e05b035d6e989548384
PM / OPP replace kfree_rcu() with call_srcu() in opp_set_availability()

This existed before we introduced call_srcu() in opp layer to synchronize with
srcu_notifier_call_chain() while removing OPPs. And is a potential bug which
wasn't noticed earlier.

Let fix it as well by using the right API to free OPP.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp.c