diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-07-07 21:46:05 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-07-07 21:46:05 +0200 |
commit | ba7c3507087aaf98bbeab04a62251bf63c6348c1 (patch) | |
tree | f1da4c041b8626504863a8542550600a21f74853 | |
parent | 88084a3df1672e131ddc1b4e39eeacfd39864acf (diff) | |
parent | c8934e4e348915caac54085c01fd9d04fa16134a (diff) | |
download | linux-ba7c3507087aaf98bbeab04a62251bf63c6348c1.tar.bz2 |
Merge tag 'devfreq-fixes-for-5.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux
Pull a devfreq fix for 5.19-rc6 from Chanwoo Choi:
"- Fix exynos-bus NULL pointer dereference by correctly using the local
generated freq_table to output the debug values instead of using the
profile freq_table that is not used in the driver."
* tag 'devfreq-fixes-for-5.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux:
PM / devfreq: exynos-bus: Fix NULL pointer dereference
-rw-r--r-- | drivers/devfreq/exynos-bus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c index e689101abc93..f7dcc44f9414 100644 --- a/drivers/devfreq/exynos-bus.c +++ b/drivers/devfreq/exynos-bus.c @@ -447,9 +447,9 @@ static int exynos_bus_probe(struct platform_device *pdev) } } - max_state = bus->devfreq->profile->max_state; - min_freq = (bus->devfreq->profile->freq_table[0] / 1000); - max_freq = (bus->devfreq->profile->freq_table[max_state - 1] / 1000); + max_state = bus->devfreq->max_state; + min_freq = (bus->devfreq->freq_table[0] / 1000); + max_freq = (bus->devfreq->freq_table[max_state - 1] / 1000); pr_info("exynos-bus: new bus device registered: %s (%6ld KHz ~ %6ld KHz)\n", dev_name(dev), min_freq, max_freq); |