diff options
-rw-r--r-- | drivers/base/power/opp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index 977474a3c64f..2d195f3a1998 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c | |||
@@ -641,7 +641,7 @@ static int opp_set_availability(struct device *dev, unsigned long freq, | |||
641 | 641 | ||
642 | list_replace_rcu(&opp->node, &new_opp->node); | 642 | list_replace_rcu(&opp->node, &new_opp->node); |
643 | mutex_unlock(&dev_opp_list_lock); | 643 | mutex_unlock(&dev_opp_list_lock); |
644 | kfree_rcu(opp, rcu_head); | 644 | call_srcu(&dev_opp->srcu_head.srcu, &opp->rcu_head, kfree_opp_rcu); |
645 | 645 | ||
646 | /* Notify the change of the OPP availability */ | 646 | /* Notify the change of the OPP availability */ |
647 | if (availability_req) | 647 | if (availability_req) |