Commit 0813fd2
cpufreq: prevent NULL dereference in cpufreq_online()
Ensure cpufreq_driver->set_boost is non-NULL before using it in
cpufreq_online() to prevent a potential NULL pointer dereference.
Reported-by: Gautam Menghani <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: dd016f3 ("cpufreq: Introduce a more generic way to set default per-policy boost flag")
Suggested-by: Viresh Kumar <[email protected]>
Signed-off-by: Aboorva Devarajan <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Minor edits in the subject and changelog ]
Signed-off-by: Rafael J. Wysocki <[email protected]>1 parent 90508a1 commit 0813fd2
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1571 | 1571 | | |
1572 | 1572 | | |
1573 | 1573 | | |
1574 | | - | |
| 1574 | + | |
| 1575 | + | |
1575 | 1576 | | |
1576 | 1577 | | |
1577 | 1578 | | |
| |||
0 commit comments