diff options
| author | Yaxiong Tian <tianyaxiong@kylinos.cn> | 2026-04-01 11:30:55 +0800 |
|---|---|---|
| committer | Chanwoo Choi <cw00.choi@samsung.com> | 2026-08-22 19:27:10 +0900 |
| commit | a0f11920bacdd86c9d1f2509f8a2bd5617040ed2 (patch) | |
| tree | 6e140202e37f8bdaafedb646c31f5d2713218ad0 /scripts/objdiff | |
| parent | eb6eaeb5d28df03aa7a21555398f83554f587eca (diff) | |
| download | linux-next-a0f11920bacdd86c9d1f2509f8a2bd5617040ed2.tar.gz linux-next-a0f11920bacdd86c9d1f2509f8a2bd5617040ed2.zip | |
PM / devfreq: Fix available_governors_show() when no governor is set
Since devfreq_remove_governor() may clear the device's current governor
in certain situations, while governors actually exist independently of
the device, directly returning EINVAL in this case is inaccurate.
To fix this issue, remove this check and use df->governor for validity
verification in the following code.
Fixes: 483d557ee9a3 ("PM / devfreq: Clean up the devfreq instance name in sysfs attr")
Signed-off-by: Yaxiong Tian <tianyaxiong@kylinos.cn>
Reviewed-by: Jie Zhan <zhanjie9@hisilicon.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://patchwork.kernel.org/project/linux-pm/patch/20260401033055.67608-1-tianyaxiong@kylinos.cn/
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
