diff options
| author | Yuan Can <[email protected]> | 2024-10-18 02:12:05 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-10-21 11:23:06 +0000 |
| commit | 5209d1b654f1db80509040cc694c7814a1b547e3 (patch) | |
| tree | 15b526f02570292de2716f6200669a8e851f9c20 /rust/helpers/bug.c | |
| parent | Linux 6.12-rc4 (diff) | |
| download | kernel-5209d1b654f1db80509040cc694c7814a1b547e3.tar.gz kernel-5209d1b654f1db80509040cc694c7814a1b547e3.zip | |
powercap: dtpm_devfreq: Fix error check against dev_pm_qos_add_request()
The caller of the function dev_pm_qos_add_request() checks again a non
zero value but dev_pm_qos_add_request() can return '1' if the request
already exists. Therefore, the setup function fails while the QoS
request actually did not failed.
Fix that by changing the check against a negative value like all the
other callers of the function.
Fixes: e44655617317 ("powercap/drivers/dtpm: Add dtpm devfreq with energy model support")
Signed-off-by: Yuan Can <[email protected]>
Reviewed-by: Lukasz Luba <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Subject edit ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions
