Commit eb2bb94
committed
cpufreq: exit() callback is optional
JIRA: https://issues.redhat.com/browse/RHEL-43846
CVE: CVE-2024-38615
commit b8f8583
Author: Viresh Kumar <viresh.kumar@linaro.org>
Date: Fri Apr 12 11:19:20 2024 +0530
The exit() callback is optional and shouldn't be called without checking
a valid pointer first.
Also, we must clear freq_table pointer even if the exit() callback isn't
present.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Fixes: 91a12e9 ("cpufreq: Allow light-weight tear down and bring up of CPUs")
Fixes: f339f35 ("cpufreq: Rearrange locking in cpufreq_remove_dev()")
Reported-by: Lizhe <sensor1010@163.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>1 parent 882b9e8 commit eb2bb94
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1679 | 1679 | | |
1680 | 1680 | | |
1681 | 1681 | | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
| 1682 | + | |
1685 | 1683 | | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
1686 | 1689 | | |
1687 | 1690 | | |
1688 | 1691 | | |
| |||
1731 | 1734 | | |
1732 | 1735 | | |
1733 | 1736 | | |
1734 | | - | |
| 1737 | + | |
1735 | 1738 | | |
1736 | 1739 | | |
1737 | 1740 | | |
| |||
0 commit comments