Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24e8b394 authored by Patrick Daly's avatar Patrick Daly Committed by Vikram Mulukutla
Browse files

PM / OPP: Fix potential access to invalid list entry



If struct device_opp has one entry in its opp_list, and a new_opp entry
with a larger rate is added, an unintended memory access occurs.
Fix this issue by only accessing opp->rate when opp->node is a valid list
item.
Discovered with KASAN.

Change-Id: Ib3b75324e349897c25ed7e54ef107700ebdc60c2
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 96ae61c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment