diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-02-08 10:26:54 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-02-09 20:26:42 +0100 |
commit | 5d8f384a9b4fc50f6a18405f1c08e5a87a77b5b3 (patch) | |
tree | 6420ebc7b90914dde028b85a8ba737e753ee5f30 /drivers/cpufreq/armada-37xx-cpufreq.c | |
parent | 7cca9a9851a5fb44808949539af6c0428e48a267 (diff) | |
download | linux-stable-5d8f384a9b4fc50f6a18405f1c08e5a87a77b5b3.tar.gz linux-stable-5d8f384a9b4fc50f6a18405f1c08e5a87a77b5b3.tar.bz2 linux-stable-5d8f384a9b4fc50f6a18405f1c08e5a87a77b5b3.zip |
cpufreq: davinci: Fix clk use after free
The remove function first frees the clks and only then calls
cpufreq_unregister_driver(). If one of the cpufreq callbacks is called
just before cpufreq_unregister_driver() is run, the freed clks might be
used.
Fixes: 6601b8030de3 ("davinci: add generic CPUFreq driver for DaVinci")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/armada-37xx-cpufreq.c')
0 files changed, 0 insertions, 0 deletions