diff options
author | Wan Jiabing <wanjiabing@vivo.com> | 2022-04-26 14:17:14 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2022-04-27 06:21:14 +0300 |
commit | a3b8d1b12c6bc3655332f19af84d0780ba88a578 (patch) | |
tree | bffa7d974dca12bfc087315f51ee18546e3ed22e /tools/perf/scripts/python/stackcollapse.py | |
parent | ffa7bdf7f344477ad817504c87d8d2db5316a8b6 (diff) | |
download | linux-a3b8d1b12c6bc3655332f19af84d0780ba88a578.tar.xz |
cpufreq: mediatek: Fix NULL pointer dereference in mediatek-cpufreq
Fix following coccicheck error:
drivers/cpufreq/mediatek-cpufreq.c:464:16-23: ERROR: info is NULL but dereferenced.
Use pr_err instead of dev_err to avoid dereferring a NULL pointer.
Fixes: f52b16ba9fe4 ("cpufreq: mediatek: Use device print to show logs")
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions