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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Mar 2020 01:09:34 +0000 (12:09 +1100)
commitd95fe371ecd28901f11256c610b988ed44e36ee2
tree6f2fbeba8922d7246ef0291ea7c0b896af5b0008
parent850507f30c38dff21ed557cb98ab16db26c32bbc
cpufreq: powernv: Fix frame-size-overflow in powernv_cpufreq_work_fn

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
drivers/cpufreq/powernv-cpufreq.c