Repository navigation
Commit fefa8ff
cpufreq: unlock when failing cpufreq_update_policy()
Commit bd0fa9b introduced a failure path to cpufreq_update_policy() if
cpufreq_driver->get(cpu) returns NULL. However, it jumps to the 'no_policy'
label, which exits without unlocking any of the locks the function acquired
earlier. This causes later calls into cpufreq to hang.
Fix this by creating a new 'unlock' label and jumping to that instead.
Fixes: bd0fa9b ("cpufreq: Return error if ->get() failed in cpufreq_update_policy()")
Link: https://devtalk.nvidia.com/default/topic/751903/kernel-3-15-and-nv-drivers-337-340-failed-to-initialize-the-nvidia-kernel-module-gtx-550-ti-/
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Cc: 3.15+ <stable@vger.kernel.org> # 3.15+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 51d211e commit fefa8ff
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2242 | 2242 | | |
2243 | 2243 | | |
2244 | 2244 | | |
2245 | | - | |
2246 | | - | |
2247 | | - | |
2248 | | - | |
| 2245 | + | |
| 2246 | + | |
2249 | 2247 | | |
2250 | 2248 | | |
2251 | 2249 | | |
| |||
2264 | 2262 | | |
2265 | 2263 | | |
2266 | 2264 | | |
2267 | | - | |
| 2265 | + | |
2268 | 2266 | | |
2269 | 2267 | | |
2270 | 2268 | | |
| |||
2279 | 2277 | | |
2280 | 2278 | | |
2281 | 2279 | | |
| 2280 | + | |
2282 | 2281 | | |
2283 | 2282 | | |
2284 | 2283 | | |
2285 | | - | |
2286 | 2284 | | |
2287 | 2285 | | |
2288 | 2286 | | |
| |||
0 commit comments