diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2021-11-11 18:48:06 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2021-11-25 09:49:37 +0300 |
commit | be6592ed56a7cca8a001ff339cb9325bfa3c6e3f (patch) | |
tree | d153da17122a8ba980153ede7ef56aa2a6b6ccd6 /COPYING | |
parent | 7e97b3dc2556743dd02612c92a8de7026e8d7dc9 (diff) | |
download | linux-be6592ed56a7cca8a001ff339cb9325bfa3c6e3f.tar.xz |
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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions