[PATCH] cpufreq: sti: avoid NULL dereference in dev_err()
Viresh Kumar
viresh.kumar at linaro.org
Mon Aug 31 02:38:19 PDT 2026
On 31-08-26, 17:11, Xueqin Luo wrote:
> ddata.cpu is NULL-checked, then immediately passed to dev_err().
> Replace with pr_err() to avoid dereferencing NULL.
>
> Fixes: ab0ea257fc58 ("cpufreq: st: Provide runtime initialised driver for ST's platforms")
> Signed-off-by: Xueqin Luo <luoxueqin at kylinos.cn>
> ---
> drivers/cpufreq/sti-cpufreq.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied. Thanks.
--
viresh
More information about the linux-arm-kernel
mailing list