In commit e458716a92b57 ("PM: EM: Mark inefficiencies in CPUFreq"), cpufreq_cpu_get() is called without a cpufreq_cpu_put(), permanently increasing the reference counts of the policy struct. Decrement the reference count once the policy struct is not used anymore.
Unified · Split
| @@ -259,6 +259,8 @@ static void em_cpufreq_update_efficiencies(struct device *dev) · 258 unmodified lines | ||
| 259 | 259 | found++; |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | + cpufreq_cpu_put(policy); | |
| 263 | + | |
| 262 | 264 | if (!found) |
| 263 | 265 | return; |
| 264 | 266 | |