summaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorLifeng Zheng <zhenglifeng1@huawei.com>2025-04-21 11:00:20 +0800
committerChanwoo Choi <cw00.choi@samsung.com>2025-07-14 20:04:17 +0900
commitbab7834c03820eb11269bc48f07c3800192460d2 (patch)
tree31cb1d681f4f546f991b4709732b5313b5822219 /rust/helpers
parenta98d36802f677d90333cc431e23f13cd53608a96 (diff)
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 <zhenglifeng1@huawei.com> Link: https://lore.kernel.org/lkml/20250421030020.3108405-5-zhenglifeng1@huawei.com/ Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions