diff options
| author | Peter Griffin <peter.griffin@linaro.org> | 2026-09-08 12:37:27 +0000 |
|---|---|---|
| committer | Viresh Kumar <viresh.kumar@linaro.org> | 2026-09-09 10:23:05 +0530 |
| commit | 1f6de65e3314519ce462bfd3a1d29e918f97e4e5 (patch) | |
| tree | f2bd08edc26fa037fb2f91cfa1366ebc6a33db76 /scripts/basic/split-include.c | |
| parent | a5096d4927d1eb607d51a7342a7e7591a3838c19 (diff) | |
| download | linux-1f6de65e3314519ce462bfd3a1d29e918f97e4e5.tar.gz linux-1f6de65e3314519ce462bfd3a1d29e918f97e4e5.zip | |
opp: fix use after free in _update_opp_table_clk()
dev_pm_opp_put_opp_table() frees the opp_table which is subsquently used
by dev_err_probe(). This causes an Oops during boot on gs101-oriole.
cpu cpu0: error 000000006b6b6b6b: Couldn't find clock
Unable to handle kernel paging request at virtual address 006b6b6b6b6b6cd3
...
Hardware name: Oriole (DT)
pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : _of_add_table_indexed+0x80/0xbb0
lr : _of_add_table_indexed+0x6c/0xbb0
...
Call trace:
_of_add_table_indexed+0x80/0xbb0 (P)
dev_pm_opp_of_cpumask_add_table+0x70/0x120
dt_cpufreq_probe+0x23c/0x480
platform_probe+0x64/0xb8
Fixes: 84f05af0975c9 ("opp: Use clk_get_optional() to avoid leaving opp_table->clk as an error pointer")
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
[ Viresh: use return value of dev_err_probe() ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
