cpufreq: qcom-cpufreq-hw: Avoid stack buffer for IRQ name
authorArd Biesheuvel <ardb@kernel.org>
Thu, 11 Nov 2021 15:48:06 +0000 (17:48 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 25 Nov 2021 06:49:37 +0000 (12:19 +0530)
commitbe6592ed56a7cca8a001ff339cb9325bfa3c6e3f
treed153da17122a8ba980153ede7ef56aa2a6b6ccd6
parent7e97b3dc2556743dd02612c92a8de7026e8d7dc9
cpufreq: qcom-cpufreq-hw: Avoid stack buffer for IRQ name

Registering an IRQ requires the string buffer containing the name to
remain allocated, as the name is not copied into another buffer.

So let's add a irq_name field to the data struct instead, which is
guaranteed to have the appropriate lifetime.

Cc: Thara Gopinath <thara.gopinath@linaro.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Andy Gross <agross@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Thara Gopinath <thara.gopinath@linaro.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c