diff options
| author | Sergey Shtylyov <s.shtylyov@auroraos.dev> | 2026-09-20 20:59:27 +0300 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-09-23 13:32:20 +0200 |
| commit | 53e506883206752e3861eb26f5feb2a587c5a9cb (patch) | |
| tree | 74d5f821e5edfca6eae59da9126393a96deef1a6 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 46ff460038d6c90ff491489e0ce5c5161c6b589a (diff) | |
pmdomain: rockchip: Fix domain check in rockchip_pm_add_one_domain()
In rockchip_pm_add_one_domain(), there's the check (most probably for the
case where the "reg" prop has an unexpected value?) which doesn't make much
sense as the variable pd_info will be NULL iff pmu->info-> domain_info is
NULL and the variable id is 0. What does make sense there is checking
pd_info->pwr_mask and pd_info->req_mask which can't both be 0 for a valid
domain.
Found by Linux Verification Center (linuxtesting.org) with the Svace
static analysis tool.
Signed-off-by: Sergey Shtylyov <s.shtylyov@auroraos.dev>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
