summaryrefslogtreecommitdiff
path: root/drivers/opp/Makefile
diff options
context:
space:
mode:
authorMarijn Suijten <marijn.suijten@somainline.org>2021-08-22 20:44:10 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2021-08-23 10:14:55 +0300
commit19526d092ceb32d619fce73fe0bdca4370890124 (patch)
treef9e4c3b59a4604305d3526bc25c3308af369f8a9 /drivers/opp/Makefile
parentc3ddfe66d2bb511f7fbcdc8e64952c7859e7e69d (diff)
downloadlinux-19526d092ceb32d619fce73fe0bdca4370890124.tar.xz
opp: core: Check for pending links before reading required_opp pointers
Commit 4fa82a87ba55 ("opp: Allow required-opps to be used for non genpd use cases") dereferences the pointers in required_opp_tables but these might be set to an ERR_PTR if the list still has lazy links pending, resulting in segfaults. Prior to this patch IS_ERR was also checked on required_opp_tables[i] before reading ->is_genpd inside _opp_table_alloc_required_tables, which is at the same time the predicate to add this table to the lazy list. This segfault is solved by reordering the checks to bail on lazy pending tables before reading ->is_genpd. Fixes: 4fa82a87ba55 ("opp: Allow required-opps to be used for non genpd use cases") Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp/Makefile')
0 files changed, 0 insertions, 0 deletions