]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
cpufreq: powernv: Fix frame-size-overflow in powernv_cpufreq_work_fn
authorPratik Rajesh Sampat <psampat@linux.ibm.com>
Mon, 16 Mar 2020 13:57:43 +0000 (19:27 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:41 +0000 (14:47 +0100)
commit99478493d1af1bdc68fcf49a8160530418bdc4a5
tree1555e88e2aef5b423a64786b8fae03d7489565df
parent3e3ecdfcabd76e8c59bced0ea1ac6c24504af460
cpufreq: powernv: Fix frame-size-overflow in powernv_cpufreq_work_fn

BugLink: https://bugs.launchpad.net/bugs/1900624
[ Upstream commit d95fe371ecd28901f11256c610b988ed44e36ee2 ]

The patch avoids allocating cpufreq_policy on stack hence fixing frame
size overflow in 'powernv_cpufreq_work_fn'

Fixes: 227942809b52 ("cpufreq: powernv: Restore cpu frequency to policy->cur on unthrottling")
Signed-off-by: Pratik Rajesh Sampat <psampat@linux.ibm.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200316135743.57735-1-psampat@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
drivers/cpufreq/powernv-cpufreq.c