diff options
| author | Lifeng Zheng <[email protected]> | 2025-04-21 03:00:20 +0000 |
|---|---|---|
| committer | Chanwoo Choi <[email protected]> | 2025-07-14 11:04:17 +0000 |
| commit | bab7834c03820eb11269bc48f07c3800192460d2 (patch) | |
| tree | 31cb1d681f4f546f991b4709732b5313b5822219 /lib/crypto/mpi/mpi-sub-ui.c | |
| parent | PM / devfreq: Remove redundant devfreq_get_freq_range() calling in devfreq_ad... (diff) | |
| download | kernel-bab7834c03820eb11269bc48f07c3800192460d2.tar.gz kernel-bab7834c03820eb11269bc48f07c3800192460d2.zip | |
PM / devfreq: Check governor before using governor->name
Commit 96ffcdf239de ("PM / devfreq: Remove redundant governor_name from
struct devfreq") removes governor_name and uses governor->name to replace
it. But devfreq->governor may be NULL and directly using
devfreq->governor->name may cause null pointer exception. Move the check of
governor to before using governor->name.
Fixes: 96ffcdf239de ("PM / devfreq: Remove redundant governor_name from struct devfreq")
Signed-off-by: Lifeng Zheng <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
Signed-off-by: Chanwoo Choi <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
